开发者

360 degree video in MPMoviePlayerController

开发者 https://www.devze.com 2023-03-24 05:49 出处:网络
I amtrying to develop an iphone application which needs to show a 360 degree video like the oneand rotate the video as per the phone movement. How开发者_JAVA百科 can i do this? Is it possible to do th

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

精彩评论

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