frimfram / AndroidOpenGLVideoDemo

Demo of using TextureView and OpenGL on it to render video

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TextureView Video playback demo

This is a demo for using OpenGL to render video to a TextureView.

With this you can use OpenGL shaders for video effects during playback.

Important files:

TextureSurfaceRenderer.java - Similar to GLSurfaceView, it initialiazes OpenGL context on a TextureView surface and has an abstract draw() function where OpenGL drawing should be done.

VideoTextureRendrer.java - Extension of TextureSurfaceRendrer that uses OpenGL shaders to render video with OpenGL.

About

Demo of using TextureView and OpenGL on it to render video

License:Apache License 2.0


Languages

Language:Java 100.0%