Record BitmapData to an FLV-encoded file (for Adobe AIR)
Version: 0.2The purpose of the FLVRecorder class is to record a stream of BitmapData to a FLV-file, as converting BitmapData to ByteArrays with the byte shifting class, made everything run unpredictable.
Operating System: Mac OS X
This problem could be solved if you save the BitmapData to a temporary file. This helps you protect your RAM from overloading, and when the recording is done, the class will convert that temporary file to an FLV-file.
For ease of use, the developer built in a few events as well, so that when the recording starts and stops consecutively an event occurs and indicate your progress.
The class offers the user to record via inputting BitmapData, Bitmaps and even your custom components, Flex component, like your VideoDisplay and also Flash components, like the FLVPlayBack or your custom Sprites and MovieClips.
The class does not support the feature of adding sound to the flv-file for the moment. This will be the next step of the development.
To exemplify the concept, the developer built a small application that enables you to use your webcam and to save the results on your desktop as an flv-file.
To view the source used in this project, right-click somewhere, and choose view source.