小视频播放 [英] Small video playback

查看:94
本文介绍了小视频播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据我从互联网上收集到的信息,MPMoviePlayerController类不支持小型视频播放.因此,为了打败一匹死马,我想知道可以使用什么方法在屏幕的一角播放小视频而不会中断屏幕的其余部分.

到目前为止,我们已经遇到了两个可行的解决方案:使用UIImageView并像疯子一样通过它翻转图像,并使用包含我们已经需要的所有动画的大型全屏视频,并根据需要跳过. >

我对MPMoviePlayerController不支持非全屏视频是否理解不正确?与制作UIImageView活页簿相比,他们的解决方案简单吗?剪辑视频会危害性能吗?

解决方案

我认为您迷上了翻书.可以肯定的是,全屏视频问题是硬件视频解码器的局限性.

From what I have gathered from internets the MPMoviePlayerController class doesn't support small video playback. So, in an effort to beat a dead horse I was wondering what kind of methods could be used to get a small video playing in a corner of the screen without interrupting the rest of the screen.

So far we've come across two solutions that may work: using a UIImageView and flopping images through it like a madman and using a large fullscreen video with all the animations we need already on it and skipping around as needed.

Am I wrong about the MPMoviePlayerController not supporting non-fullscreen video? Is their an easier solution than making UIImageView flip-books? Is cutting around a video a performance hazard?

解决方案

I think you're stuck with flip books. Pretty sure the fullscreen video issue is a limitation of the hardware video decoder.

这篇关于小视频播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆