Hi,
would it make sense to handle the client-draw signal of glimagesink on android?
If so, how would such a handler look like in the most simple case? That is, if the handler should simply draw the sample passed to the handler?
I’ve already experimented a bit: Added a client-draw handler to android tutorial-5. It is actually called and a valid sample is passed to it. Now, the handler seems to be responsible for drawing the sample, but how to do that?
I’ve found an example here, which handles client-draw, but I do not know if it is expected to run on android: doublecube
I’ve added the code of drawCallback from this example to my experimental client-draw handler, added “gstreamer-gl-1.0 gstreamer-gl-prototypes-1.0” to GSTREAMER_EXTRA_DEPS in Android.mk for that the required headers are found, but the linker isn’t really happy with that:
In function
drawCallback': D:/Dev/Android/gstreamer/subprojects/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:843: undefined reference to
glEnable’
D:/Dev/Android/gstreamer/subprojects/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:844: undefined reference toglBindTexture' D:/Dev/Android/gstreamer/subprojects/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:845: undefined reference to
glTexParameteri’
D:/Dev/Android/gstreamer/subprojects/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:846: undefined reference toglTexParameteri' D:/Dev/Android/gstreamer/subprojects/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:847: undefined reference to
glTexParameteri’
D:/Dev/Android/gstreamer/subprojects/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:848: undefined reference toglTexParameteri' D:/Dev/Android/gstreamer/subprojects/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:849: undefined reference to
glTexEnvi’
And so on. So I assume that a library is missing.