Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 839003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:23:46+00:00 2026-05-15T05:23:46+00:00

I am building an iPhone app that plays videos on demand from a web

  • 0

I am building an iPhone app that plays videos on demand from a web service.

The videos play in an MPMoviePlayerController, and everything works fine on the iPhone device.

However, when one loads up the iPhone application on an iPad, the videos play Portrait mode (with letterboxing on the top and bottom), instead of Landscape Left like they do on the iPhone.

At first the videos were not appearing at all, however I fixed this by adding the MPMoviePlayerControllers view to the view that is creating it, as a subview, and then set it to play fullscreen.

—

Edit To Original:

I now have it playing on the iPad in all rotations. Is there any way to stop it rotating, and just have it play LandscapeLeft?

Thanks,
Dwaine

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T05:23:47+00:00Added an answer on May 15, 2026 at 5:23 am

    iPad apps are supposed to support all four interface orientations.

    EDIT: I haven’t managed to find official docs to cite. It might be simply that iPad apps are supposed to be able to launch in all orientations, though you can force some bits to be landscape if it’s “sensible”. Whether Apple rejects your app or not is another issue, but I think they’re unlikely to reject a video app that plays video in landscape.

    After some experimentation, the following seems to work:

    @interface MyMovieViewController : MPMoviePlayerViewController
    @end
    
    @implementation MyMovieViewController
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
    {
        return UIInterfaceOrientationIsLandscape(toInterfaceOrientation);
    }
    
    @end
    

    Then just instantiate MyMovieViewController instead of MPMoviePlayerViewController.

    EDIT 2: MPMoviePlayerViewController is not the same as MPMoviePlayerController; you use it to get the behaviour of the 2.0-3.1 MPMoviePlayerController. You need to add the view controller to the VC hierarchy, but it’s pretty simple (and a lot easier than messing around with view transforms):

    MPMoviePlayerViewController * vc = [[MyMovieViewController alloc] initWithContentURL:aUrl];
    [self presentMoviePlayerViewControllerAnimated:vc];
    [vc.moviePlayer play];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building an iPhone app that has to download an Excel (.xls) file from
I am building an iphone app that reads a phone number from the address
I'm currently building an iPhone app that will display data from an NSMutableArray called
I am building an iphone app that reads the videos uploaded , photos uploaded
I'm building an iPhone app that aggregates data from several different data sources and
I am building an iPhone app that will need to display info primarily in
I'm building an iPhone app version of a website that sells tickets online. I'm
I'm building an app that allows users to snap pictures using the iPhone camera,
I am building an iPhone app, and I am trying to have a web
I'm building an iPhone app that is essentially a book, it will be bundled

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.