MPMoviePlayerController 中的 360 度视频
我正在尝试开发一个 iPhone 应用程序,需要显示 360 度视频,例如 one< /a> 并根据手机移动旋转视频。我该怎么做?使用普通的 MPMovieplayer 控制器可以做到这一点吗?
I am trying to develop an iphone application which needs to show a 360 degree video like the one and rotate the video as per the phone movement. How can i do this? Is it possible to do this with normal MPMovieplayer controller?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您无法使用普通的 MPMoviePlayerController 来实现此目的,但有几个库可以实现此目的。看看这里:
它们与 OpenGL 配合使用,您可以将它们嵌入到 Objective-C 代码中。
编辑:
正如 @Mangesh Vyas 善意指出的那样,这些仅适用于固定图像。但是,如果您相应地修改代码,它们也可能是嵌入视频的合适起点。他们已经完成了方向、加速度计等的处理,因此您不必自己实现所有这些。
I don't think you can do this with a normal
MPMoviePlayerController
, but there are several libraries out there to achieve this. Have a look here:They work with OpenGL and you can embed them in your Objective-C code.
EDIT:
As @Mangesh Vyas kindly pointed out those are intended to use with fixed images only. However they might be a suitable starting point for embedding video as well, if you modify the code accordingly. They already do the handling of direction, accelerometer etc. so you don't have to implement all that yourself.