I tried to succesfully render a webview onto a GLSurfaceView, which I managed to do thanks to this: Is it possible to render an Android View to an OpenGL FBO or texture?
However when I tried to load up a website with a video, I realized, that the video doesn't play on the GLSurfaceView (there is sound however). I found out through googleing that the webview renders the video on a seperate surfaceview, which is probably the cause, that it doesnt appear on my GLSurfaceView.
My question: How do I go about hacking the webview in order to access the extra video surface?
I consciously say hack... I am ready to use reflection and whatever is needed, but I don't really know where to start. In the SDK Manager provided source all I can find is the WebViewProvider interface without any implementation. Via grepcode I find some kind of implementations (http://grepcode.com/file/repo1.maven.org/maven2/org.robolectric/android-all/4.1.2_r1-robolectric-0/android/webkit/HTML5VideoViewProxy.java), but not in the SDK Manager supplied stuff. I am running KitKat 4.4 on an Xiaomi RedMi 2 phone.
How can I determine/use the relevant implementation? Or do you think this isn't even feasable?