How to take a snapshot of video control?
I have an mx:Video
object that plays live streaming vid开发者_如何转开发eo. How can I take a snapshot of that video?
Suppose your VideoDisplay object is called "v":
<mx:VideoDisplay id="v" source="..." ... />
Then you can draw the contents onto a Bitmap object like so:
var bd:BitmapData = new BitmapData(v.width, v.height);
bd.draw(v);
var b:Bitmap = new Bitmap(bd);
Now the Bitmap object has a snapshot of the video.
精彩评论