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.
Solution
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.
Raw video files need to be converted, or encoded, into a format that is supported in Flash.
Solution
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.
When seeking within a video file, the playhead jumps forward or back rather than playing from the specified point.
Solution
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.
You have a hosted video that you want to share on the web or mobile devices.
Solution
Use the free and super-easy-to-use video player called Flash Media Playback. The following how-to video walks you through the simple steps of getting the HTML embed code for the Adobe-hosted video player and pasting it into a finished web page so you can play your own hosted video file anywhere (that Flash Player is).
(Video below is currently offline pending a bug fix by the Cookbooks engineering team. A resolution is expected shortly.)
The biggest question of most developers i encounter is this: this a good time to learn flash? is it to late to join the party? Is the next party going to be in flash or a different language is swiftly coming to take over (JavaScript?HTML5?)?
Solution
I know knowing things is important but what is the most bang on the buck? I'm going to attempt to prove how and why flash is still king when it comes to the most fun,profitable, and time effective platform to work on. Does that mean HTML5/Javasciprt is out? no not at all Flash isn't in the same play ground as Javascipt is and we will look into what that means as we explore a personalized perspective of web/dev history.
is it possible to extract raw audio or video data from netstream before data is sent to backend media server via RTMP.
so I can massage on the raw data? such as convert asao audio to PCM.
Solution
You can try using ActionScript 3.0 programming to extract raw audio
This site is produced in partnership with O'Reilly.