iphone - white screen before MPMoviePlayerViewController -
i streaming video server, works using mpmovieplayerviewcontroller
.
but problem if size of video big white screen show before mpmovieplayerviewcontroller
connects , starts playing video.
annoying, , have no clue how fix it.
code using play video:
nsstring *videourlstring = @"http://serveradress/test/videotest/starwars.mp4"; nsurl *videourl = [nsurl urlwithstring:videourlstring]; mpmovieplayerviewcontroller *movieplayerview = [[[mpmovieplayerviewcontroller alloc] initwithcontenturl:videourl] autorelease]; [self presentmovieplayerviewcontrolleranimated:movieplayerview];
try this:
movieplayerview.view.backgroundcolor = [uicolor blackcolor];
resource: mpmovieplayercontroller shows blank white screen before launch?
Comments
Post a Comment