ios 8 - MPMoviePlayerController Video not rotating accordingly -


In my application, I am trying to run video in both landscape and portrait mode using MPMoviePlayerController. I wrote a piece of code to play the video & amp; Handling its rotation My current code is working perfectly well in iOS 7 but in iOS 8 this issue is to change the scenario of the IPAD, the video is also running in portrait mode in relation to that situation. Can anyone suggest me in a way so that I can get out of this issue.

My current code is:

  NSURL * videoURL = [NSURL fileURLWithPath: urlFromPrevious]; MoviePlayerController = [[MP3 MPV Player Controller Alok] initWithContentURL: videoURL]; Movie Player Controller. ScalingMode = MPVsklingModEsquareFit; MoviePlayerController.fullscreen = Yes; [[NSNotificationCenter defaultCenter] addObserver: Self Selector: @Sillector (Playback Finnish Callback :) Name: MP4 Player Player Object: Movie Player Controller;) MP4PlayerPlaybackDefinition Item; [[NSNotificationCenter defaultCenter] addObserver: Self Selector: @Sillector (Will ExcecuteScreen :) Name: MPMVplayerVilitExit FullScreenNotical Object: MoviePlayer Controller]; [[Movie Player Controller View] Set Frame: CGRactMake (X_Xer Images, Wi_Xer Image, width_image, image for height + 44)]; [[See itself] Adsview: [Movie Player Controller View]]; [Movieplayer controller play]; Take a look at  

You have to present that view controller with the appropriate UIViewController selector: 'Current Movie Player Visual Controller' '


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -