开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜