Gstremer compatibility with android 10+ devices

Nicolas Dufresne nicolas at ndufresne.ca
Fri Nov 6 17:35:32 UTC 2020


Le vendredi 06 novembre 2020 à 07:58 -0600, Purva a écrit :
> - I am using gstreamer version 1.18  with ndk version 21. I have downloaded
> code from below link
> https://gstreamer.freedesktop.org/download/
> 
> - Are you suggesting to replace gstreamer with gstreamer-bad plugin or
> source code to make it work on Android 10?
> 
> - And, also suggest me how can I add gstreamer-bad plugin in my code to
> resolve my issue if I need to use my code itself
> I appreciate your help and looking forward to your response.<<


Non of these no. What I'm saying is that the crasher you are getting
happens during initialization of ahcsrc, which is a plugin that calls
the Camera API on the Java side. That API has been deprecated for a
while, in favour of Camera2 API.

>From the look of it (because I'm not so up-to-date with Android stack),
Android 10+ removes the deprecated API, so it crash because the API no
longer exist. Of course, Android is all about backward compat, if you
build for 9+, it will work again, and will even work on Android 10.

If for specific reason you must build for Android 10 (because you need
to use new API), then the WIP patches I have posted will be needed to
support camera. If you don't care about camera, you may just out-
compile that plugin and move on.

Nicolas





More information about the gstreamer-devel mailing list