Unlike the previous MX version, the spark VideoDisplay component has no attachCamera function. The only other examples of Camera usage I have found have all revolved around attaching to a Video object. The problem is that this means you have to handle all the sizing etc... manually.
You can create a simple custom MediaElement class and add it to a MediaContainer in a custom UIComponent which will handle all of the sizing issues. This can be included via mxml in the same way VideoDisplay is.
How can I record the webcam video & audio in a flv file to my local drive?
In AIR, you can embed Red5 media server (which is free) and use it to write the video locally. The quality is good and no bandwidth issues.
Raw video files need to be converted, or encoded, into a format that is supported in Flash.
Use Adobe Media Encoder, included with Creative Suite, to encode your video into an FLV or F4V file for playback on the Flash Platform. This free video lesson demonstrates how this is done.
If you are used to working with earlier versions of Adobe Media Encoder, the powerful new features of AME 5.5 may not be readily apparent.
Watch this short video that clearly demonstrates the new features and minor user interface changes.
When seeking within a video file, the playhead jumps forward or back rather than playing from the specified point.
To enable accurate seeking and scrubbing within a video you must deliver the video via RTMP streaming with Flash Media Server or a Flash Video Streaming Service. With progressive delivery, you must embed a navigation cue points at specified timecodes to allow seeking to that point. Seeking is also possible with HTTP Dynamic Streaming, but is still not frame-accurate.
This site is produced in partnership with O'Reilly.