我已经从 [ https://github.com/vimeo/VIMVideoPlayer]集成了 VIMVideoPlayer 并尝试播放https://vimeo.com/342236564但它显示错误消息
这是我的代码
func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
self.vimPlayer.player.isLooping = true
self.vimPlayer.player.disableAirplay()
self.vimPlayer.setVideoFillMode(AVLayerVideoGravity.resizeAspectFill.rawValue)
self.vimPlayer.delegate = self
playVideo()
}
func playVideo(){
let playerItem = AVPlayerItem(url: URL(string: "https://vimeo.com/342236564")!)
self.vimPlayer.player.setPlayerItem(playerItem)
self.vimPlayer.player.play()
}
而且我仅限于一个域。如何在我的移动应用程序中获取视频