是否可以用不同的视频播放 2 个不同的 avplayer?
现在我要制作一个视频应用程序。
1)在一个屏幕(UIview)中,是否可以玩2个独立的avplayer?
例如,在左侧面板中,一个AV播放器播放一个视频文件,而在右侧面板中,另一个AV播放器播放另一个视频。
我用自己的视频资源制作了 2 个 avplayer,但是出现了错误。即当一个视频结束时,另一个视频也会停止......
请帮助我。
2) 我将使用 AVAssetReader 将一些视频帧提取到图像文件。
起初,一旦我成功了,但下次我尝试这样做时,我就无法读取任何帧。
有人说 AVFoundation 是,所以在我的这种情况下,可能会带来不便......
这是对的吗?
在应用程序中,我可以使用 AVAssetReader 对象两次吗?
如果有人知道请帮帮我... 谢谢大家。
Now I'm going to make an video app.
1) In a screen(UIview), is it possible to play 2 independent avplayers?
So for example, in the left panel, one avplayer plays one video file, and in the right panel, the other avplayer plays the other video.
I made 2 avplayers with their own video asset, but then there is an error. i.e. when a video ends up, then the other video also stops...
Please help me.
2) I'm going to extract some video frames to image files using the AVAssetReader.
At first, once I successed, but at the next time I tried to do so, then I can't read any frame.
Some people said AVFoundation is , so in such my cases, there can be inconviniences...
Is this right?
In an app, can I use the AVAssetReader object twice?
If anyone knows, please help me...
Thanks everybody.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您停止一个视频而不是删除完成通知并检查该视频的对象是否也释放并将其设置为零。
我认为播放两个视频效果很好。
When you stop one video than remove did finish notification and check that video's object also release and set it to nil.
I think that working fine on two video playing.