Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AVURLAsset *urlAsset = [[AVURLAsset alloc] initWithURL:url options:nil];
- AVPlayerItem *playerItem = [AVPlayerItem playerItemWithAsset:urlAsset];
- self.player = [AVPlayer playerWithPlayerItem:self.playerItem];
- [self.player play];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement