iPhone在自定义视图中播放视频:示例代码好吗? [英] iPhone playing video in custom view: Example Code Please?

查看:54
本文介绍了iPhone在自定义视图中播放视频:示例代码好吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将一个应用程序全屏播放,并在其上覆盖一个界面,该界面基本上选择了在其下播放的视频(想想"Gym Babes",但远不及risqé!).我不想使用私有标头,所以MPMoviePlayerController是不可能的.

I'm wanting to put together an application which plays video fullscreen with an interface overlaying it that basically chooses the video that is played underneath it (think 'Gym Babes' but nowhere near as risqé!). I don't wish to use private headers so MPMoviePlayerController is out of the question.

我一直在研究stackoverflow一段时间,得出的结论是,我需要使用某种我认为将用C语言编写的自定义编解码器/视频库.

I've been digging through stackoverflow for a while and have come to the conclusion that I would need to use some sort of custom codec/video library that I assume would be written in C.

我的问题是,基本上有人成功做到了吗?谁能分享他们可以分享的任何代码,教程等?

My question is basically has anyone had success doing this? And can anyone share any code, tutorials etc they can share?

推荐答案

您可能想看看AVPlayerLayer:

You probably want to take a look at AVPlayerLayer: http://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVPlayerLayer_Class/Reference/Reference.html it gives you basic playback abilities with no (read fully customizable) interface…

这篇关于iPhone在自定义视图中播放视频:示例代码好吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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