私はこれについてグーグルを徹底的にスキャンしました。彼らは mpmovieplayercontroller で avmutablecomposition を再生する方法です。URL で初期化する必要があるので、本当の問題は avmutablecomposition の一時的な URL なのか、それとも avassetexportsession を使用して作成できるのかということです。ユーザーはそれが削除されるのが好きではありませんか?
1 に答える
0
iOS 8.0 では、AVPlayerViewController を使用できます - https://developer.apple.com/library/prerelease/ios/documentation/AVFoundation/Reference/AVPlayerViewController_Class/index.html
AVPlayerViewController *playerVC = ....; //initialize the playerViewController
AVPlayerItem *playerItem = [AVPlayerItem playerItemWithAsset:[mutableComposition copy]]; //make an immutable copy of the mutableComposition
AVPlayer *player = [AVPlayer playerWithPlayerItem:playerItem];
[playerVC setPlayer:player];
于 2015-01-31T01:00:40.227 に答える