IOS AVPlayer renders texture

I am trying to understand AVPlayer, but the Apple documentation samples are not very simple, and I am having some problems.

What I need to do is create a Render To Texture from the movie so that in my scene I can use it to match in the OpenGL texture (this was done EVERY frame!)

As far as I understand, I think I should use AVURLAsset, but I'm not sure.

Can someone spot me in the right direction? Also, if you have any knowledge of simple video> RTT fetch for iOS, that would be great (could not find anything using googling)

+4
source share
1 answer

( - , )

https://developer.apple.com/library/ios/samplecode/AVBasicVideoOutput/Introduction/Intro.html#//apple_ref/doc/uid/DTS40013109

, .

, , , , .

,

  • () displayPixelBuffer: (CVPixelBufferRef) pixelBuffer

APLEAGLview.m

, !

+4

Source: https://habr.com/ru/post/1529239/


All Articles