splits abi enable true; reset(); include "arm64-v8a", "armeabi-v7a"
expect class MediaEngine fun play(url: String) fun pause() fun stop() fun release()
Actual implementation:
: Older 32-bit Android devices (typically released before 2016). Incompatible with : Modern 64-bit devices ( arm64-v8a ).
ExoPlayer is the go-to for most Android KMP projects, but sometimes you need a sledgehammer to crack a nut. That sledgehammer is .
init // Initialize LibVLC with generic options // This loads the libvlcjni.so native library libVLC = LibVLC(context, ArrayList()) mediaPlayer = MediaPlayer(libVLC)
To confirm that libvlcjni.so is using its own decoders and not Android’s MediaCodec: