iphone - MPMoviePlayerController black screen when app enter foreground from background -


i'm using mpmovieplayercontroller playing video in iphone app.

when mpmovieplayercontroller playing, press home button on iphone, make app enter background.

then tap app's icon make app enter foreground, mpmovieplayercontroller's view black screen short time, 1 15 seconds.

how make mpmovieplayercontroller's video shows when app came foreground?

special thx! :d

nsurl *movieurl = [nsurl urlwithstring:@"http://......"];

// initialize movie player object specified url  self.movieplayer = [[mpmovieplayercontroller alloc] initwithcontenturl:movieurl];  self.movieplayer.controlstyle = mpmoviecontrolstylefullscreen;  [self.movieplayer.view setframe:self.view.bounds];  [self.view addsubview:self.movieplayer.view];  [self.movieplayer play]; 

i hope you.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -