iOS:在播放过程中获取每一帧的视频帧内容
事情是这样的:在我的 iPad 应用程序中,我正在使用 MPMoviePlayerController 播放视频,电影播放器的视图是我的主视图的子视图,并且在视频视图之上有另一个半透明视图。
我想做的是每次更新视频视图时重新绘制透明视图,因为该视图的内容取决于视频,所以我需要知道它何时更新。
此外,我需要将视频视图的内容作为 UIImage 获取,以便更新我的透明视图。
有人知道如何做这两件事吗?
非常感谢
Here's the thing: in my iPad app I'm playing a video using MPMoviePlayerController, the movie player's view is a subview of my main view and I have another semi-transparent view on top of the video view.
What I'd like to do is redraw my transparent view every time the video view is updated, because the content of that view depends on the video, so I need to know when it is updated.
Furthermore, I need to get the content of the video view as an UIImage in order to update my transparent view.
Anybody has any idea on how to do these two things?
Thanks a bunch
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这是不可能的(真的,这似乎是一个性能消耗者),但谁知道呢?
I don't think that's possible (it seems like a performance hog, really), but who knows?