iosapache-flexyoutube

YouTube API player on iOS?


I'm using the YouTube API in my flex app to play videos and it works fine running on my computer and android, but I'm getting an issue when I try to use it on iOS, I just get a black screen!

Any ideas?


Solution

  • I was curious so did some research.

    First, I searched for SWFLoader on iOS and this post came up. I'll quote:

    You cannot load SWFS that run ActionScript on IOS

    Then I realized from your comment you may be using the Loader class; so I googled Flash Loader on iOS and came across this. To quote:

    In an iPhone application, you cannot use the Loader.load() method. However, you cannot run any ActionScript code in SWF content loaded with the Loader.load() method. However, you can use assets in the SWF file (such as movie clips, images, fonts, and sounds in the library). You can also use the Loader.load() method to load image files.

    You may benefit from reading through the actual Adobe docs. Specifically this page which focuses on unsupported APIs. It is the last link where the above quote comes from.