本文介绍了MPMoviePlayerController在加载视频之前不显示控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个基于iOS4的应用程序,其中包含:
I've an application based on iOS4, with a:
MPMoviePlayerController
此设置:
moviePlayerController.movieSourceType = MPMovieSourceTypeStreaming;
moviePlayerController.controlStyle = MPMovieControlStyleDefault;
一切都很好,除了当我提出MPMoviePlayerController视图时,它不显示控件直到视频预先加载。
Everything is working good, except that, when I present the MPMoviePlayerController view, it doesn't display controls until the video is pre-loaded.
我知道在以前版本的iOS(3.x)中,只要出现MPMoviePlayer就会显示控件。有没有机会在ioS4上运行?
I know in previous version of iOS (3.x), controls are displayed as soon as MPMoviePlayer is presented. Any chance to have this working in ioS4?
推荐答案
你必须使用MPMoviePlayerViewController而不是MPMoviePlayerController。
You have to use MPMoviePlayerViewController instead of MPMoviePlayerController.
这篇关于MPMoviePlayerController在加载视频之前不显示控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!