ios - youtube api播放器无法在iOS上运行吗?

标签 ios apache-flex api youtube

我在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/

相关文章:

ios - 用户不活动,使用 AppDelegate Swift 4 显示屏幕保护程序

ios - 为什么 sender.tag 总是零?

apache-flex - FlexMouseEvent.MOUSE_DOWN_OUTSIDE 仅适用于弹出组件?

angularjs - 相关和嵌套资源的 REST Api 端点设计

html - 通过 url 生成随机图像

android - React Native - 如何使 ScrollView 内的 KeyboardAvoidingView 适用于所有设备?

ios - 无法将视频保存到照片库

apache-flex - 为AdvancedDataGrid设置替代颜色-一种用于父节点,另一种用于子节点

apache-flex - 我喜欢为游戏实现 Flex to Server comet/long polling

php - 将变量值从库传递到 Controller ,然后在 CI 3.0 中查看