Page 1 of 1

Playing in Java with libvlc-all

Posted: 22 Nov 2023 16:59
by npuleio
Hello everyone !!!

I am playing lately with libvlc-all:4.0.0-eap13 in my android java application streaming a realtime rtsp url....it works like charm but if I add in build.gradle

Code: Select all

implementation 'org.videolan.android:libvlc-all:4.0.0-eap13'

when I build a release APK I see it increases from 7Mb to 168Mb ...
Since I am just playing a realtime rtsp url and nothing else , is there a way to choose those libraries really necessary only for an android java application to reduce APK size?
I tried with adding :

Code: Select all

implementation 'org.videolan.android:libvlc:4.0.0-eap13' implementation 'org.videolan.android:libvlc-rtsp:4.0.0-eap13'

but without success because Android Studio couldn't resolve those implementation libraries

Thanks to all!!
Cheers
Luigi

Re: Playing in Java with libvlc-all

Posted: 22 Nov 2023 19:04
by RĂ©mi Denis-Courmont
Yes but this is a complex and tedious process due to the many variables involved. So unless you know what you are doing or are prepared to hire a consultant, just don't.