Created
January 24, 2017 07:53
-
-
Save codingstyle/0cc65f37eb4579a117ac89d380c4e502 to your computer and use it in GitHub Desktop.
AVPlayer output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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