13
SwiftでAVPlayerViewController(AVKit)を使用してビデオを再生する方法
SwiftのAV Kit Player View Controllerでビデオをどのように再生しますか? override func viewDidLoad() { super.viewDidLoad() let videoURLWithPath = "http://****/5.m3u8" let videoURL = NSURL(string: videoURLWithPath) playerViewController = AVPlayerViewController() dispatch_async(dispatch_get_main_queue()) { self.playerViewController?.player = AVPlayer.playerWithURL(videoURL) as AVPlayer } }