0
使用非常簡單的實現AVPlayer的:AVplayer不玩特定鏈接
AVURLAsset *asset = [AVURLAsset assetWithURL:self.currentCollateral.url];
AVPlayerItem *item = [AVPlayerItem playerItemWithAsset:asset];
AVPlayer *player = [AVPlayer playerWithPlayerItem:item];
AVPlayerViewController *playerViewController = [[AVPlayerViewController alloc] init];
playerViewController.player = player;
[player play];
[self presentViewController:playerViewController animated:YES completion:nil];
但這個環節不會玩:
不知道我我錯過了。代碼適用於其他鏈接。似乎無法在文檔中找到任何相關內容。謝謝你的幫助!
本
謝謝你的回答! – Mountainbrussell