在 iOS 中播放带 Alpha 通道的视频?
是否可以在 iPhone 应用程序中播放带有 Alpha 通道的视频?
我正在考虑带有子视图(电影视图)的 UIView 并在该视图中播放带有 alpha 通道的电影。
这可能吗?
Is it possible to play a video with alpha channel in you iPhone app?
I'm thinking UIView with a subview (the movie view) and play a movie with alpha channel in that view..
Is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看应用商店中的“APNG”应用程序。此应用程序是一个免费演示,展示了如何使用 .apng 文件格式在 iOS 应用程序中实现具有 Alpha 通道的动画。您还可以查看带 Alpha 通道的 h.264 了解详细信息有关如何使用一对 h.264 视频来实现具有 Alpha 通道的视频的描述。
APNG 应用
Take a peek at the "APNG" app on the app store. This app is a free demo that shows how animations with an alpha channel can be implemented in an iOS app using the .apng file format. One can also take a peek at h.264 with an alpha channel for a detailed description about how a pair of h.264 videos can be used to implement a video with an alpha channel.
APNG app
看起来 iOS 提供的解决方案无法做到这一点。但根据 这个答案类似的问题你可能会用ffmpeg成功。 ffmpeg 的问题是 GPL/LGPL 与 Apple 的条款不兼容,因此您无法在 App Store 的应用程序中使用它。
It looks like there's no way to do this with iOS provided solutions. But according to this answer to a similar question you might succeed with ffmpeg. The problem with ffmpeg is that GPL/LGPL are incompatible with Apple's terms so you can't use it in an app for the App Store.