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 3224302
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:12:27+00:00 2026-05-17T16:12:27+00:00

I am using MPMoviePlayerController class for playing the video in built-in media player on

  • 0

I am using MPMoviePlayerController class for playing the video in built-in media player on iPhone. The project works fine on iPhone 3.0 simulator or device, but it doesn’t show the video view on iPhone 4.0 simulator or device, rather than i could able to hear the sound, no built-in player video display.

Does anyone come across this issue and how to resolve it?

UPDATED:
I placed my code below: Now the problem is, i call the code playing the video when clicking on a row in the TableView. When i click on a row, it started playing the video but the TableView is not being completely hidden. So i could see Tableview and Video, both screens have overwritten. How do i push back the TableView completely when video is playing and come back to the TableView after video view is done?

NSURL *url = [NSURL URLWithString:strUrl];

    mP = [ [MPMoviePlayerController alloc] initWithContentURL:url ];
    [mP setControlStyle:MPMovieControlStyleFullscreen];
    [mP setFullscreen:YES];
    [mP play];

    [[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight animated:NO];
    // Rotate the view for landscape playback
    [[self view] setBounds:CGRectMake(0, 0, 480, 320)];
    [[self view] setCenter:CGPointMake(160, 240)];
    [[self view] setTransform:CGAffineTransformMakeRotation(M_PI / 2)];
    [[mP view] setFrame:CGRectMake(0, 0, 480, 320)];

    // Add movie player as subview
    [[self view] addSubview:[mP view]];
  • 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-17T16:12:28+00:00Added an answer on May 17, 2026 at 4:12 pm

    You have to remember that in iOS4 MPMoviePlayerController is not playing in fullscreen by default. You have to add your moviePlayer.view on the superview.

    If you want to play the video on fullscreen you should look at the MPMoviePlayerViewController reference

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using MPMoviePlayerController to play mp4 file. Video is playing fine but
I am using MPMoviePlayerController in Ipad application. Video is not showing but audio comes,
Ok, so I was previously playing Youtube videos using MPMOviePlayerController but now that doesn't
I need to play a video in my UIViewcontroller using MPMoviePlayerController. So before playing
I am using the built in MPMoviePlayerController for playing videos.I've run in to a
I am playing a video by using MPMoviePlayerController: NSString *urlStr = [[NSBundle mainBundle] pathForResource:@myvideo.MOV
I am developing an iPhone application which plays the video using MPMoviePlayerController . When
I am trying to get a video playing in an iOS applocation, using MPMoviePlayerController
I'm using a MPMoviePlayerController in my iPhone app to display some short video clips
I am using MPMoviePlayerController currently to play a video inside IPhone and now I

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.