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
Post a Comment