iPhone上的MPMoviePlayerController替代品? [英] MPMoviePlayerController alternatives on iPhone?

查看:310
本文介绍了iPhone上的MPMoviePlayerController替代品?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找iPhone上MPMoviePlayerController的替代品。作为视频播放器,其功能非常有限。根据类引用例如,无法获得当前播放时间或设置新时间。这只是播放和停止。

I am looking for alternatives to the MPMoviePlayerController on the iPhone. As a video player its functionality is very limited. According to the class reference there is no way to get the current play back time or set a new time, for example. It's just play and stop.

是否有适用于iPhone视频播放的中间件解决方案提供更多功能? CRI 正在开发中但是它尚未发布。我找不到其他任何东西。

Are there any middleware solutions out there for iPhone video playback that offer more functionality? CRI has something in development but it has not been released. I haven't been able to find anything else.

谢谢。

推荐答案

请记住,即使项目是GPL,也不意味着您无法联系作者关于基础代码的LGPL选项。

Keep in mind that even though a project is GPL, that does not mean you can't contact the author's about an LGPL option on the underlying code.

A如果你需要处理特定的视频类型,可以使用openGL作为视频的合成表面,并获得像ffmpeg这样的幕后库。

A possible roll your own solution would be to use openGL as a compositing surface for the video and obtain a behind the scenes library like ffmpeg if you need to process specific video types.

NeHe有一个将AVI渲染为openGL的例子: http:// nehe。 gamedev.net/data/lessons/lesson.asp?lesson=35

NeHe has an example of rendering AVI's to openGL: http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=35

FFMpeg最近被移植到iPhone并且是基于LGPL的产品: http://geek.thinkunique.org/2008/03/05 / ffmpeg-on-the-iphone /

FFMpeg has recently been ported to iPhone and is an LGPL based product: http://geek.thinkunique.org/2008/03/05/ffmpeg-on-the-iphone/

(注:有一些de关于LGPL在iPhone上的商业用途,因为许可在引用iPhone不允许的库链接时引用了动态这个短语。我没有看到任何项目团队对他们在iPhone上静态使用的代码感到不满,但你应该直接联系作者澄清。)

(Note: There is some debate over the commercial use of LGPL on iPhone because the license references the phrase "dynamic" when referring to library linkage, which iPhone doesn't allow. I have not seen any project teams balk at their code being used on the iPhone statically, but you should contact the authors directly for clarification.)

另一个(虽然是GPL)版本一个OpenGL视频播放器是: http://code.google.com/p/glover/

Another (though GPL) version of an OpenGL video player is: http://code.google.com/p/glover/

通过这样的解决方案获得的基本上是绕过iPhone / Mac / CALayer的具体技术细节,并通过OpenGL利用现有的视频知识库虽然不是很广泛,但仍然得到广泛的支持。

What your getting through a solution like this is basically a bypass on the iPhone/Mac/CALayer specific technical details and leveraging an existing knowledge base of video through OpenGL which although not extensive, is still broadly supported.

如果您正在处理特定的视频样式,那么您可能想要查看某个库是否可用于特定的视频格式直接来自供应商,而不是使用像FFMpeg这样的多用途工具。合法工作完成后,视频可以来自大多数图书馆。

If you are dealing with a specific video style, then you may want to see if a library is avaiable for the specific video format direct from the vendor instead of using a multi-purpose tool like FFMpeg. Once you have the compositing working, the video can come from most any library.

Barney

这篇关于iPhone上的MPMoviePlayerController替代品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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