how to get frame for texture with VLC
Hello, i have library for playing 360 degree video, using standard AVPlayer and AVPlayerItemVideoOutput, and have code like this:
- (
CVPixelBufferRef
)getCurrentFramePicture- {
- CMTime currentTime = [self.videoOutput itemTimeForHostTime:CACurrentMediaTime()];
- [self.delegate progressTimeChanged:currentTime];
- if (![self.videoOutput hasNewPixelBufferForItemTime:currentTime]) {
- return 0;``
- }
CVPixelBufferRef
buffer = [self.videoOutput copyPixelBufferForItemTime:currentTime itemTimeForDisplay:NULL];- return buffer;
- }
I want to try this library, but can't see way to get frame for my texture. Is any? Thank you.