This content has been marked as final. Show 5 replies
Erm... are you sure you need to use mx:Image to display a video?
That looks dodgey to me!
I think you should use " <mx:VideoDisplay source="..." but then I don't know, im just guessing!
VideoDisplay is meant for flv files. Those are swfs.
Hi, I haven't tested your example, but did you try using a SWFLoader component instead of an Image?
You could also extract the flv URL of the video using the technique described at the address below, and use a VideoDisplay component:
http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/constructing_youtube_1.php http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/constructing_youtube_1.php">http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/constructing_youtube_1.ph p
Yes, tried the swf loader. Same result.
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
<mx:VBox width="100%" height="100%">
<mx:SWFLoader source=" http://youtube.com/v/BtQfHpB8XHQ"/>
<mx:SWFLoader source=" http://youtube.com/v/V3BsjxDZJM0" />
This code shows either the first or the second. Not both.
I also get a console warning:
Warning: HTTP response headers not available on this platform. Strict policy file rules cannot be enforced.
This issue appears to be specific to YouTube content; at least, your example works when I use other SWFs. We'll have someone take a look.
Oliver Goldman | Adobe AIR Engineering