Skip to content

Instantly share code, notes, and snippets.

@codingstyle
Created January 24, 2017 07:53
Show Gist options
  • Save codingstyle/0cc65f37eb4579a117ac89d380c4e502 to your computer and use it in GitHub Desktop.
Save codingstyle/0cc65f37eb4579a117ac89d380c4e502 to your computer and use it in GitHub Desktop.
AVPlayer output
AVPlayerItemVideoOutput *videoOutput = [[AVPlayerItemVideoOutput alloc] initWithPixelBufferAttributes:pixelBufferAttributes];
videoOutput.suppressesPlayerRendering = YES;
// Do this action once your player item is ready
AVPlayerItem *currentItem = self.player.currentItem;
[currentItem addOutput:videoOutput];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment