在 Flex 制作的 iOS 应用程序中播放电影
我正在 Flex (sdk 4.5) 中编写 iOS 应用程序。可以在这样构建的应用程序中播放电影吗?
我试图使用视频组件 - 它在我的桌面上运行良好,但在我的 iPod 上不起作用。当然,我的应用程序正在运行,但视频没有播放。
I'm writing the application for iOS in Flex (sdk 4.5). Is it possible to play movie in such built application?
I was trying to use Video component - which works well on my desktop, but it doesn't work on my iPod. Of course my application is running, but the video isn't playing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我想我已经得到了最终的结果:
可以在为 AIR 2.6 编写的 iOS 应用程序中播放视频,但无法使用 h.264 视频和 acc 音频编解码器进行解码。
对我来说,当使用 vp6 编解码器和标准视频组件对视频进行解码时,它就可以工作。在描述符文件中将 renderMode 设置为 GPU 时,存在低帧速率的问题,可以部分解决该问题,但是正如您所看到的 这里不推荐。
PS 感谢您的帮助 J_A_X。
I think I have final results:
It is possible to play video in iOS app written for AIR 2.6 but it can't be decoded by using h.264 video and acc audio codecs.
For me it was working when video was decoded by using vp6 codec and standard Video component. There is an issue with low frame rate which can be partially resolved when setting renderMode to gpu in descriptor file, however as you can see here it's not recommended.
P.S. Thanks for help J_A_X.
我建议您不要尝试播放应用程序内部的视频,而只需链接到它并让本机操作系统处理它。操作系统将打开浏览器来播放文件或启动本机应用程序来处理它。
I would recommend that instead of trying to play the video internal to your application, you just link to it and let the native OS handle it. The OS will either open up a browser to play the file or launch a native app to handle it.
您是否尝试过使用 StageVideo 类?它是 10.2 中的新增功能,旨在利用完整的硬件加速。请关注本教程了解更多信息。
Have you tried to use the StageVideo class? It's new in 10.2 and meant to utilize full hardware acceleration. Follow this tutorial for more information.