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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:29:21+00:00 2026-06-16T01:29:21+00:00

What is the appropriate point to send the play message to a MPMoviePlayerController instance

  • 0

What is the appropriate point to send the play message to a MPMoviePlayerController instance instantiated in a splitView detail View Controller?

My app is receiving the above console message (with a !) but not crashing…

The app is utilizing MPMoviePlayerController to play a movie from an asset URL
and the responsilble method is called as follows:

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    [self startPlayingVideo:self];
}

It plays the video just fine but the console message is looming…
If I move the method call to viewWillAppear:animate:, the console message does not show up. The issue is now I can only hear audio and do not see the video.

For completeness, here is the called method…

- (void) startPlayingVideo:(id)sender

    NSURL *movieURL = [NSURL URLWithString:self.movieURLString];

    if (self.moviePlayer != nil){
       [self stopPlayingVideo:nil];
    }

    self.moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:movieURL ];

    if (self.moviePlayer != nil){

        [[NSNotificationCenter defaultCenter] 
         addObserver:self
         selector:@selector(videoHasFinishedPlaying:)
         name:MPMoviePlayerPlaybackDidFinishNotification
         object:self.moviePlayer];

         self.moviePlayer.scalingMode = MPMovieScalingModeAspectFit;

         [self.moviePlayer prepareToPlay];
         [self.moviePlayer play];

         [self.view addSubview:self.moviePlayer.view];
         [self.moviePlayer setFullscreen:YES animated:YES];

    } else {
         NSLog(@"Failed to instantiate the movie player.");
  }  
}
  • 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-16T01:29:23+00:00Added an answer on June 16, 2026 at 1:29 am

    My original issue stemmed from having the MoviePlayerController as an entirely different viewController (embedded in a detail navigation controller). I redesigned the parent view to include a moviePlayer child view. This solved the issue.

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

Sidebar

Related Questions

Sorry, if this is a duplicate. Please point me to the appropriate question if
What is the appropriate way to implement a location-based Android app that periodically sends
I'm currently developing an iOS app and have reached the point where I need
Several different domains names point to my app on heroku, for example foo.com and
I'm having problems trying to send an XMPP message to a 'Room' in our
I've installed this django-contact-form app. When I want to send an email to my
Could you please point me the appropriate RegEx for validating an integer with a
What would be the appropriate regex to get the last word in these sentences:
What's the appropriate way to get the non-handle type in the following code: template
What would be the appropriate WAI ARIA treatment for hidden elements (hidden by CSS),

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.