iphone - MPMoviePlayerController delay when there should be virtually none -


each time app changes displayed animation, looping movie, takes pause till start movie. movieplayerconntroller created way

    self.movieplayer = [mpmovieplayercontroller alloc];     [movieplayer initwithcontenturl:[nsurl fileurlwithpath:[[nsbundle mainbundle] pathforresource:@"newchar" oftype:@"m4v"]] ];     // remove playerview our view (no prob isnt attached any)     [movieplayer.view removefromsuperview];     // tell our playerview size has use     movieplayer.view.frame = cgrectmake(0, 0, 320, 430);     // , add hin superview behind else     [self.view insertsubview:movieplayer.view atindex:0];     // no moviecontrolls     movieplayer.controlstyle = mpmoviecontrolstylenone;     // looping forever     movieplayer.repeatmode= mpmovierepeatmodeone;     // let him use own audio session old devices     movieplayer.useapplicationaudiosession= no;     // fix silly black background on ios 4.3     movieplayer.view.backgroundcolor = [uicolor clearcolor]; 

the actual movie played way

[movieplayer initwithcontenturl:[nsurl fileurlwithpath:[[nsbundle mainbundle] pathforresource:@"whatever" oftype:@"m4v"]]]; [movieplayer play]; 

just said, each time movie changed, takes while display it. on newer devices ok, since faster, on g2 disturbing. tried prepare playback, makes no difference.

any idea missed?

thanks reading! :)

it takes time load movie disk, , slower on older devices. how big video?


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -