josemmo / libvlc-android

Unofficial ready-to-use libVLC for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libVLC for Android

Latest version Travis GitHub license

DEPRECATED

This project has been deprecated as now there is an official LibVLC compiled artifact from VideoLAN.

To use it, go to https://code.videolan.org/videolan/vlc-android/-/tags and find the latest release. Then, add this line to your project dependencies:

implementation 'org.videolan.android:libvlc-all:{THE-TAG-NAME}'

Unofficial ready-to-use compiled version of libVLC for Android. Just add this library to your project dependencies.

Usage

Add this in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        [...]
        maven { url 'https://jitpack.io' }
    }
}

Then, add the following in your module build.gradle in dependencies:

dependencies {
    implementation 'com.github.josemmo:libvlc-android:X.X.X'
}

NOTE: Replace X.X.X with the latest release version name.

Optionally, add this to build multiple APKs filtering by architecture:

splits {
    abi {
        enable true
        include "x86", "x86_64", "armeabi-v7a", "arm64-v8a"
    }
}
def abiCodes = ['x86':5, 'x86_64':8, 'armeabi-v7a':4, 'arm64-v8a':7]
applicationVariants.all { variant ->
    variant.outputs.each { output ->
        def abiName = output.getFilter(OutputFile.ABI)
        output.outputFileName = "MyApp-${variant.versionName}-${abiName}.apk"
        output.versionCodeOverride = defaultConfig.versionCode*10000000 + abiCodes.get(abiName, 0)
    }
}

Documentation

This library is built from the official videolan/vlc-android repository. Check this link for a sample project.

For licensing, see VideoLAN FAQ.

About

Unofficial ready-to-use libVLC for Android

License:GNU General Public License v3.0


Languages

Language:Java 99.6%Language:Shell 0.4%