[英]MP4 video as background
I am trying to create something like vine app has.我正在尝试创建类似 vine app 的东西。
This is what I got so far:这是我到目前为止得到的:
func playVideo() {
let path = NSBundle.mainBundle().pathForResource("WelcomeVideo", ofType: "mp4")
let pathURL = NSURL.fileURLWithPath(path!)
let myPlayer = MPMoviePlayerViewController(contentURL: pathURL)
myPlayer.moviePlayer.repeatMode = .One
presentMoviePlayerViewControllerAnimated(myPlayer)
}
But the problem is that it shows the playbutton and such.. Any suggestions?但问题是它显示了播放按钮等......有什么建议吗?
你有没有尝试过这样的事情?
myPlayer.moviePlayer.controlStyle = MPMovieControlStyleNone
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.