开发者

iOS 4.1 black screen before playing video using MPMoviePlayerViewController

开发者 https://www.devze.com 2023-01-18 16:44 出处:网络
My application flow is something like the following A Video plays. Once its done. Couple of icons are shown on the screen for users to tap on.

My application flow is something like the following

  1. A Video plays.
  2. Once its done. Couple of icons are shown on the screen for users to tap on.
  3. Depending on which icon was tapped, another video starts.
  4. If no icon is tapped for like 5 seconds we automatically go to next video.

The problem is with 3. Just before the video starts a black screen appears for like 0.5 second.

Not sure what's goin开发者_JAVA百科g on because the videos in step 1 and step 4 plays fine.

It will be great if someone can give ideas to debug and fix this.

Thanks!


You can try to put a background-image onto the player with:

[[moviePlayer view] setBackgroundColor:<UIImage>image];
0

精彩评论

暂无评论...
验证码 换一张
取 消