我在Flex应用程序中使用了YouTube API来播放视频,并且可以在计算机和android上正常运行,但是当我尝试在iOS上使用它时却遇到了问题,只是出现黑屏!
有任何想法吗?
最佳答案
我很好奇,所以做了一些研究。
首先,我在iOS和这个post came up上搜索了SWFLoader。我会引用:
You cannot load SWFS that run ActionScript on IOS
然后我从您的评论中意识到您可能正在使用Loader类。所以我在iOS上用Google搜索Flash Loader并遇到了this。报价:
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.
阅读实际的Adobe docs可能会使您受益。具体来说,这个page专注于不受支持的API。这是上面引用来自的最后一个链接。
关于ios - youtube api播放器无法在iOS上运行吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8945554/