2

I have added MPMoviePlayerController in my view. and its working fine. and when I switch to this in full screen and change the orientation of device then no orientation change event is fired. so please can let me know how I solve this issue.

Thanks

Mitesh Khatri
  • 3,935
  • 4
  • 44
  • 67

1 Answers1

0

I suppose you present MPMoviePlayerController modally so check out the -

(void)shouldAutorotateToInterfaceOrientation: method of your main app controller. I suppose that if you return TRUE just for portrait the modal controller can't rotate itself. Try to return TRUE for all interface orientation on your rootViewController and the MPMoviePlayerController should start to rotate.

Vineet Singh
  • 4,009
  • 1
  • 28
  • 39
Gabriele
  • 1,163
  • 1
  • 11
  • 24
  • Actually I am not using modelviewcontroller. I used addsubview for this. same video is working in small size and full screen. in full screen i am just setting isfullscreen=true for this. thx – Mitesh Khatri Aug 09 '12 at 14:51
  • Sorry I confused the MPMoviePlayerViewController but the MPMoviePlayerController expose the view so if your viewController, that hosts your video, rotate correctly you should be able to see it rotated. – Gabriele Aug 09 '12 at 15:34