开发者

360 degree video in MPMoviePlayerController

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开发者_JAVA百科 can i do this? Is it possible to do this with normal MPMovieplayer controller?


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:

  • PanoramaGL
  • Panorama 360

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜