“Be inspired, enjoy your work, keep learning and never forget to play.” — gskinner

Taking a snapshot of an flv

Posted: December 3rd, 2007 | Author: Idoru | Filed under: Actionscript3, Bitmap, Tutorial, Video, WorkAround | 2 Comments »

Following my last post on 9-Slice items, here comes another nice one on Bitmap.draw() and the security sandbox.
Many people know the solution to this one, but i just found myself looking for it for too long, so here it goes :)

If you want to take a snapshot of a running Video object, you can't, you'll be alerted by the flash player that you are violating
the sandbox security. So how do we do it?
Easy as pie :)

video.attachNetStream( null );
bitmapData.draw( video );
video.attachNetStream ( myNetStreamObject );

Three very simple lines of code but that are hard to come by.


Air: Flv Snapshots

Posted: October 22nd, 2007 | Author: Idoru | Filed under: Actionscript3, Adobe AIR, Adobe Flex, Experiments, Tutorial, Video | 3 Comments »

I just had a go at air today,

A co-worker of mine needed an application that would make it easy for him to take snapshots of .flv files for a content management system, so i came up with the idea of having a go and doing it with air.

So as a follow up i'll make a little tutorial explaining how it works. As Usual you can have a look in the code for the intructions. And should you have any questions feel free to ask them.

Air application file -Thumb

Update: Now published with the final AIR version.