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

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -