我有一个问题
我可以在除playerviewcontroller之外的多个视图控制器中播放视频声音
我正在使用youtube_os_helper库来播放视频以播放YouTube视频
@IBOutlet var movieplayer: YTPlayerView!
func startPlaying()
{
movieplayer.loadWithVideoId(videoID[a], playerVars: ["modestbranding" : 0,"controls" : 0,"playsinline" : 1,"autohide" : 1,"showinfo" : 0,"rel" : 0,"origin" : "http://www.example.com"])
self.videoname.text = videoTitle[a]
self.artistname.text = artist[a]
movieplayer.addSubview(btnClose)
}
此playerviewcontroller代码