[p e r c e p t i c o n] wrote:
is there a way to capture web cam video straight into flash...not a single frame, but a few seconds worth?
I'm assuming by "straight into Flash" you mean without recourse to a RTMP server such as Adobe's Flash Media Server or the open-source Red5 project as per the documented means.
Assuming you're targetting Flash Player 8 or later, if all you want to do is capture bitmaps of the video feed across multiple frames, you can simply make bitmap copies of the video object displaying your local camera feed and save them to BitmapData instances on each frame (say, via an onEnterFrame handler in AS1/AS2 or the analogous enterFrame event if you're already using AS3).
The only significant constraint you need to watch out for here is memory usage. Allocating and storing a bitmap in memory for each frame goes through RAM very quickly if you're storing more than a minute or two of "video" in this manner.
While this works, it doesn't work nearly as well as saving to FLV via a server. Your frame rate may get choppy depending on the Flash Player and/or system performance and you're certainly not going to get sound this way. If you want the full monty, you'll need to go RTMP.
Jim Cheng EffectiveUI _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com