Unfortunately I am not able to do this as our app must support android 10
with GStreamer. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi, There exists a patch to add a ahc2 based source, but it was never completed: Olivier On Tue, 2020-12-08 at 01:56 -0600, Purva wrote:
-- Olivier Crête _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Nicolas Dufresne-5
But my application is not working on andrid camera I dont need any camera
suport I want to achive live streaming only. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Nicolas Dufresne-5
Hi,
Thanks for trying to help me out. Here is overall status, 1. Apk is working fine on Android 7 2. Apk is not working on Android 10 with the same setup. I am getting below error in logcat for Android 10, ./sys/androidmedia/gst-android-hardware-camera.c:1616:_init_classes Failed to initialize android.hardware.Camera classes: Failed to call Java method: java.lang.ClassNotFoundException: Didn't find class "org/freedesktop/gstreamer/androidmedia/GstAhcCallback" on path: DexPathList[[zip file "/data/app/org.freedesktop.gstreamer.livestream.livestreaming-1/base.apk"],nativeLibraryDirectories=[/data/app/org.freedesktop.gstreamer.livestream.livestreaming-1/lib/arm64, /data/app/org.freedesktop.gstreamer.livestream.livestreaming-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]] Right now I am not able to identify above classes I don't have library source . I am loading library via including system library System.loadLibrary("gstreamer_android"); Is there any way to get this source ? So that I can look up to this library classes. So just wanted to confirm if I get a source code of this library "libgstreamer_android" then can I make it compatible with Android 10? Or you have been trying the same in your share code. Please confirm the same. I am looking forward to your response. And please do let me know in case of any query. Thanks, -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
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: GstAhcCallback.java GstAhsCallback.java GstAmcOnFrameAvailableListener.java 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: _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Nicolas Dufresne-5
Hi,
Thanks for trying to help me out. Here is overall status, 1. Apk is working fine on Android 7 2. Apk is not working on Android 10 with the same setup. I am getting below error in logcat for Android 10, ./sys/androidmedia/gst-android-hardware-camera.c:1616:_init_classes Failed to initialize android.hardware.Camera classes: Failed to call Java method: java.lang.ClassNotFoundException: Didn't find class "org/freedesktop/gstreamer/androidmedia/GstAhcCallback" on path: DexPathList[[zip file "/data/app/org.freedesktop.gstreamer.livestream.livestreaming-1/base.apk"],nativeLibraryDirectories=[/data/app/org.freedesktop.gstreamer.livestream.livestreaming-1/lib/arm64, /data/app/org.freedesktop.gstreamer.livestream.livestreaming-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]] Right now I am not able to identify above classes I don't have library source . I am loading library via including system library System.loadLibrary("gstreamer_android"); Is there any way to get this source ? So that I can look up to this library classes. So just wanted to confirm if I get a source code of this library "libgstreamer_android" then can I make it compatible with Android 10? Or you have been trying the same in your share code. Please confirm the same. I am looking forward to your response. And please do let me know in case of any query. Thanks, -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Jérôme Laheurte-3
Any idea about how to install this plugin ? I am performing ndk build command
ndk-build mentioning gstreamer source path in android.mk file . And compiling and creating apk file. How to apply this plugin ? -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |