<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Le 10 déc. 2020 à 05:43, Purva <<a href="mailto:gevaria.purva@einfochips.com" class="">gevaria.purva@einfochips.com</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi,<br class=""><br class="">Thanks for trying to help me out. <br class=""><br class=""><br class=""><br class="">Here is overall status,<br class=""><br class="">1. Apk is working fine on Android 7<br class="">2. Apk is not working on Android 10 with the same setup.<br class=""><br class="">I am getting below error in logcat for Android 10,<br class=""><br class=""><br class=""><br class=""><br class=""><br class="">./sys/androidmedia/gst-android-hardware-camera.c:1616:_init_classes Failed<br class="">to initialize android.hardware.Camera classes: Failed to call Java method:<br class="">java.lang.ClassNotFoundException: Didn't find class<br class="">"org/freedesktop/gstreamer/androidmedia/GstAhcCallback" on path:<br class="">DexPathList[[zip file<br class="">"/data/app/org.freedesktop.gstreamer.livestream.livestreaming-1/base.apk"],nativeLibraryDirectories=[/data/app/org.freedesktop.gstreamer.livestream.livestreaming-1/lib/arm64,<br class="">/data/app/org.freedesktop.gstreamer.livestream.livestreaming-1/base.apk!/lib/arm64-v8a,<br class="">/system/lib64, /vendor/lib64]]<br class=""></div></div></blockquote></div><br class=""><div class="">Ah yes I stumbled upon this too. The androidmedia plugin will not correctly initialize if you don’t include the Ahc callbacks in your Java code. I don’t understant how it could work on Android 7 though, since this happened to me on 7.0. Just add the following classes to your Java project:</div><div class=""><br class=""></div><div class="">GstAhcCallback.java</div><div class="">GstAhsCallback.java</div><div class="">GstAmcOnFrameAvailableListener.java</div><div class=""><br class=""></div><div class="">I can’t find them on my Linux system even though I installed gst-plugins-bad (there’s no gst-android package for Ubuntu, it seems?) but you can find them in git:</div><div class=""><br class=""></div><div class=""><a href="https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/tree/master/sys/androidmedia/org/freedesktop/gstreamer/androidmedia" class="">https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/tree/master/sys/androidmedia/org/freedesktop/gstreamer/androidmedia</a></div><div class=""><br class=""></div></body></html>