3
我有做了代碼:路繼續前進的MPMoviePlayerController折舊後iOS9
self.video = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL URLWithString:url]];
self.video.movieSourceType = MPMovieSourceTypeStreaming;
[[self.video view] setFrame:[[self view] bounds]];
[self.view addSubview:self.video.view];
[self.video play];
它基本上加載一個URL,然後開始播放。通過MPMoviePlayerController的棄用,用於執行上述功能的框架是什麼。
http://stackoverflow.com/questions/25932570/how-to-play-video-with-avplayerviewcontroller-avkit-in-swift –