360 degree video in MPMoviePlayerController

I am trying to develop an iphone application that should display video 360 degrees, for example, and rotate the video according to the movement of the phone. How can I do this? Can this be done using a conventional MPMovieplayer controller?

+6
source share
1 answer

I do not think that you can do this with the usual MPMoviePlayerController , but there are several libraries for this. Look at here:

They work with OpenGL, and you can embed them in your Objective-C code.

EDIT: As @Mangesh Vyas kindly noted, they are intended for use only with fixed images. However, they can be a good starting point for embedding videos if you change the code accordingly. They already process the direction, accelerometer, etc., so you do not need to do it all yourself.

+2
source

Source: https://habr.com/ru/post/894083/


All Articles