Skip to content

Instantly share code, notes, and snippets.

@Nub
Created November 29, 2011 05:28
Show Gist options
  • Select an option

  • Save Nub/1403565 to your computer and use it in GitHub Desktop.

Select an option

Save Nub/1403565 to your computer and use it in GitHub Desktop.
self.player = [AVPlayer playerWithURL:assetURL];
// Setup video playback
AVPlayerLayer *thisPlayerLayer = [AVPlayerLayer playerLayerWithPlayer:self.player];
[self.view.layer addSublayer:thisPlayerLayer];
[player play];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment