# SDL2 Android -\> GL\_TEXTURE\_EXTERNAL\_OES for videoplayback

**URL:** <https://discourse.libsdl.org/t/sdl2-android-gl-texture-external-oes-for-videoplayback/21646>\
**Category:** SDL Development\
**Created:** [January 17, 2016, 7:21pm UTC](https://discourse.libsdl.org/t/sdl2-android-gl-texture-external-oes-for-videoplayback/21646 "2016-01-17T19:21:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KubaBrt](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/k/35a633/32.png) [@KubaBrt](https://discourse.libsdl.org/u/KubaBrt)\
**Post date:** [January 17, 2016, 7:21pm UTC](https://discourse.libsdl.org/t/sdl2-android-gl-texture-external-oes-for-videoplayback/21646/1 "2016-01-17T19:21:36Z")

</div>

Hello everyone,

first of all, many thanks to any SDL2 contributor, for providing such reach and stable multimedia 2d framework,  
i tested many frameworks such SFML, Cocos2DX, MonoGame etc. etc, and SDL2 looks most mature and stable, and as i see with realy good community support.

Currently my company building, a 2d multimedia UI framework based on SDL2. Our framework is designed to work under Win, Linux and Android systems.

One of the most important features of our framework is videoplayback capability. Currently we sucessfully acomplished videoplayback with SDL2 for Linux and Windows systems. We are using libvlc for linux with yuv textures with really good performance. End user can playback any video and animate them or make another funcy stuff. On windows we made VMR9 and EVR renderers with hardware video decoding with zero buffer memory streaming. We are able to extract from SDL\_Texture native d3d texture and work with them.

But on android things are a little more dificcult, beacuse we have to work with ugly JNI and mix with Java code …  
We would like to use standard android mediaplayer class, and call mediaplayer via JNI interface. Mediaplayer is capable to stream decoded video frames directly to GLTexture. But mediaplayer requires GLTexture created as GL\_TEXTURE\_EXTERNAL\_OES not GL\_TEXTURE2D.

I don’t want to work with OpenGL directly i would like to use all SDL features, so i would like to create SDL\_Texture as GL\_TEXTURE\_EXTERNAL\_OES.  
Do you have any ideas how to accomplish that?

many thanks in advance,
