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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:22:46+00:00 2026-05-21T10:22:46+00:00

each time my app changes the displayed animation, which is a looping movie, he

  • 0

each time my app changes the displayed animation, which is a looping movie, he takes a pause till he finally start the movie.
The MoviePlayerConntroller is created this way

    self.moviePlayer = [MPMoviePlayerController alloc];
    [moviePlayer initWithContentURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"NewChar" ofType:@"m4v"]] ];
    // remove playerview from our view (no prob is he isnt attached to any)
    [moviePlayer.view removeFromSuperview];
    // tell our playerview the size he has to use
    moviePlayer.view.frame = CGRectMake(0, 0, 320, 430);
    // and add hin to the superview behind everything else
    [self.view insertSubview:moviePlayer.view atIndex:0];
    // no moviecontrolls
    moviePlayer.controlStyle = MPMovieControlStyleNone;
    // looping forever
    moviePlayer.repeatMode= MPMovieRepeatModeOne;
    // let him use his own Audio Session for old devices
    moviePlayer.useApplicationAudioSession= NO;
    // fix the silly black background on iOS 4.3
    moviePlayer.view.backgroundColor = [UIColor clearColor];

the actual movie is played this way

[moviePlayer initWithContentURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"Whatever" ofType:@"m4v"]]];
[moviePlayer play];

Just as I said, each time the movie is changed, he takes a while to display it. On newer devices its ok, since they are faster, but on G2 it is somewhat disturbing.
Tried prepare playback, but that makes no difference.

Any idea what I missed?

Thanks for reading! 🙂

  • 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-21T10:22:47+00:00Added an answer on May 21, 2026 at 10:22 am

    It takes time to load up the movie from disk, and obviously will be slower on older devices. How big is the video?

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

Sidebar

Related Questions

I'm writing a simple dictionary app which gives suggestions for words as you type.
My iPad app features a UITableView populated from a feed. Like most RSS readers,
I am trying to find the battery level after running an android app. When
My app makes several calls to getFromLocationName from the android.location.Geocoder; class, this is currently
Lots of words below, sorry - but I wanted to explain this situation well:
I have a WebView in one of my Activities, and when it loads a
I have a comprehensive web application with the use of lots of nested tables.
First: I'm shocked that I have to ask this question. Nowhere in the docs
I am thinking about how to ideally implement a cache layer in my Android
Ok so I am a complete beginner and have managed to put together a

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.