ipad movieplayer doesnt rotate while playing

Discussion in 'iOS Programming' started by icedosh, Jun 10, 2010.

  1. icedosh macrumors newbie

    Apr 23, 2010
    I added this to my code when im initializing the movie

    [m_pMPmpc.moviePlayer setControlStyle:MPMovieControlStyleNone];

    where m_pMPmpc is an MPMoviePlayerViewController

    It worked fine but then I noticed that the movie doesnt rotate anymore while playing(but the app after the movie still rotates) but it detects the orientation at the start and follows that.

    I need to set it to follow the landscape orientations while playing. Any idea on what code to add?

Share This Page