Once loaded, you can instantiate VLC's MediaPlayer :
android defaultConfig ndk abiFilters += "arm64-v8a" sourceSets getByName("main") jniLibs.srcDirs("src/androidMain/jniLibs") kmp external codec libvlcjni.so cpu arm64-v8a
For KMP, ensure the Android target uses androidTarget() and not android() . The jniLibs folder must be correctly merged during the final APK/AAB build. 4. Loading the Library in KMP Shared Code Use platform-specific expects/actuals to load libvlcjni.so : 4.1 Common Kotlin ( commonMain ) expect fun loadVlcLibraries() 4.2 Android Actual ( androidMain ) import android.os.Build import java.io.File actual fun loadVlcLibraries() System.loadLibrary("vlcjni") // Additional setup for VLC context Once loaded, you can instantiate VLC's MediaPlayer :