You may have been led to believe that you can’t play Windows Media files with AIR but that’s only partly true. I gave a session at MAX titled Leveraging PDF in AIR that I’ll be posting the slides for later today, but one of the results of that session is that with the magic of PDF, you can do all kinds of things people told you was impossible. One of those is embedding a Windows Media file into your AIR app.
It’s pretty straight forward because PDF has some video capability built in (Tools->Advanced Editing->Movie Tool in Acrobat Professional). As far as I can tell it uses the underlying player to actually render the video so this example only works if you have at least Acrobat Reader 8.1 and are running Windows (so that you have Windows Media). But if you really need to use your WMV assets in AIR, this might be the way to do it. I’m pretty sure you can programatically hide the chrome of your PDF so that all you see is the video, but I haven’t figured out how to do that yet. You can download the AIR file (do right click and save as) here to try it out and the PDF with WMV embedded. It’s a sweet video of me and James Ward promoing Josh Holmes’ Code to Live. Here’s the really intense code required to do this:
[code]
[/code]
TweetRelated posts:
Pingback: rw_test » Blog Archive » Playing Windows Media Videos in Adobe AIR