iOS 上的影片剪辑
大家好 我想在 iOS 设备上播放电影,发现 MPMoviePlayerController 工作起来非常容易。所以我正在播放电影,但我不希望任何视频控件可见/活动。我正在查看设置,发现类似的东西
[moviePlayerController setMovieControlMode:MPMovieControlModeHidden];
[moviePlayerController setMovieControlMode:MPMovieControlStyleNone];
,虽然它们确实在电影播放时删除了屏幕控制,但它们在电影初始开始时仍然可见。 基本上只是想在应用程序启动时播放我的电影,而不需要任何额外的控件叠加。 有什么想法如何做到这一点? 任何帮助将不胜
感激
Hi all
Im looking to play a movie on an iOS device and found MPMoviePlayerController which works very easily. So i have my movie playing but i dont want any of the video controls to be visible/active. i was looking through the settings and found things like
[moviePlayerController setMovieControlMode:MPMovieControlModeHidden];
[moviePlayerController setMovieControlMode:MPMovieControlStyleNone];
and while they do remove the on screen control while the movie is playing they are still visible on initial start of movie.
basically just want to play my movie at start of app without any extra overlays of controls at all ever.
any ideas how to do this?
any help would be appreciated
g
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
AVFoundation 有 AVPlayerLayer 类(仅限 ios4): http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/02_Playback.html#//apple_ref/doc /uid/TP40010188-CH3-SW4
AVFoundation has the AVPlayerLayer class (it is ios4 only): http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/02_Playback.html#//apple_ref/doc/uid/TP40010188-CH3-SW4
moviePlayerController.controlStyle = MPMovieControlStyleNone;
movieControlMode
已被弃用。请记住,这样用户将无法访问控件。
moviePlayerController.controlStyle = MPMovieControlStyleNone;
movieControlMode
has been deprecated.Remember, This way the user won't have access to the controls.