Better way to make MPMoviePlayer with Overlay view?

Simple and most elegant solution: Do not use the "real" fullscreen mode but scale the MPMoviePlayerController's view towards a screen-filling size MPMoviePlayerController.view. Frame = CGRectMake(0.0f, 0.0f, 768.0f, 1024.0f) Keep the MPMoviePlayerController s view on top of a regular UIViewController s view that allows rotations (addSubview). Keep your custom interface view on top of the MPMoviePlayerController's view (addSubview) and presto, you will get a properly rotating video player no matter if you run it in "fullscreen" or not.

Simple and most elegant solution: Do not use the "real" fullscreen mode but scale the MPMoviePlayerController's view towards a screen-filling size - MPMoviePlayerController.view. Frame = CGRectMake(0.0f, 0.0f, 768.0f, 1024.0f);. Keep the MPMoviePlayerController's view on top of a regular UIViewController's view that allows rotations (addSubview).

Keep your custom interface view on top of the MPMoviePlayerController's view (addSubview) and presto, you will get a properly rotating video player no matter if you run it in "fullscreen" or not.

I found one solution but I am not very proud because I this that there is some better way, but this workaround works: - In project I have on singleton class that contains some global data for me. - When application start in detail view (UISplitView) willAnimateRotationToInterfaceOrientation method is called first. Here I get current orientation and store it in singleton class.

- Later when I add overlay on top of player I read data from singleton and transform overlay elements.

Load movie in player with self.view. Or is there any other better way. I now work with modal views and everything works except I have to implement some custom rotations.

I am looking for more clear way to make this. Ok maybe some more details. In iPhone app I add player like modal view and add overlay view to it and that works.

But this is universal app and it doesn't work on iPad the same way it works on iPhone. In ipad splitView my player is on details side (nonfullscreen), when I double tap player it goes fullscreen. And now player is key window.

Here is the biggest issue. I tried to add overlay view as subviw and modal view and I made it but that overlay is not aware of device orientation, and I have to transform overlay elements and this is what I am trying to avoid. Is there any way to detect rotation on that view?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions