MPMoviePlayerController not showing controls until video is loaded

戏子无情 提交于 2019-12-05 21:56:19

You have to use MPMoviePlayerViewController instead of MPMoviePlayerController.

I'm working on a video player for iPad and I'm experiencing the same behavior. However, I don't think it's much of a problem since you can't control the video until it's loaded anyway.

What you can do is fake the existence of those controls, by setting the background view.

Here's what I do:

moviePlayerController.backgroundView.backgroundColor = [UIColor blackColor];

That just makes the background view black, but you could imagine adding a UIImageView as background view that shows disabled controls, or build real controls that actually do something.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!