开发者

movie clips on iOS

开发者 https://www.devze.com 2023-03-06 14:53 出处:网络
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.

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 movi开发者_如何转开发e. 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


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 has been deprecated.

Remember, This way the user won't have access to the controls.

0

精彩评论

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

关注公众号