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

  • Home
  • SEARCH
  • 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 8410007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:04:14+00:00 2026-06-10T00:04:14+00:00

I present an MPMovieViewController with the following code: NSString *path = [[NSBundle mainBundle] pathForResource:@Tutorial

  • 0

I present an MPMovieViewController with the following code:

NSString *path = [[NSBundle mainBundle] pathForResource:@"Tutorial" ofType:@"m4v"];

// If path is NULL (the resource does not exist) return to avoid crash
if (path == NULL)
    return;

NSURL *url = [NSURL fileURLWithPath:path];

MPMoviePlayerViewController *mpViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:url];
mpViewController.moviePlayer.controlStyle = MPMovieControlStyleFullscreen;
mpViewController.moviePlayer.shouldAutoplay = YES;

// NOTE: This can crash the app in the Simulator. This is a known bug
// in xcode: http://stackoverflow.com/a/8317546/472344
[self presentMoviePlayerViewControllerAnimated:mpViewController];

This works fine in iOS 4.3 and up, but I’ve had someone test it on a device running iOS 4.2.1 and the movie player view controller presents, but immediately dismisses itself. I can’t find anything in the docs that would explain this. Does anyone have any ideas?

  • 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-06-10T00:04:15+00:00Added an answer on June 10, 2026 at 12:04 am

    That sounds a lot like an incompatibility of the movie content itself.

    I suspect that iOS 4.2.1 device is an iPhone 3G. The 3G does not support as many codecs as the more recent models do.

    The iPhone 3G on iOS4.2.1 (and below) does not support the Main Profile but only the Baseline Profile.

    Long story short, the videos you are trying to play are not compatible with the device and you will need to reencode them using the Baseline Profile of H264.

    Below is a compatibility vs. encoding matrix done by Apple. Even though this is entitled HTTP Streaming Encode Recommendations, it still also applies for non-streaming (progressive download) and local playback.

    enter image description here

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

Sidebar

Related Questions

At present i have a the following code populating a datagridview showing the user
Source code is present at run time in production system (though it may be
The following example will present a page with two draggable squares I made. Nomatter
At present I have two WPF listboxes imitating the following functionality (source: psu.edu )
At present, the structure of my code uses XmlDocument to load Xml data and
At present, I generate a figure using the following script dat <- matrix(runif(1000*99),99,1000) dat
The following syntax is present in a .js file. var fun1 = function(fun1_parameter1){ return{
My present contract engagement is at a large E-Commerce company. Their code base which
I present to you a little mystery... the following control is intended to fail
I need to present the following structure in an RDLC report: assessment->outcome->section->question Each of

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.