Pillarbox is the modern SRG SSR player ecosystem. It is build on top of Media3 Exoplayer. So if you know how to work with Exoplayer, then you know how to work with Pillarbox.
The library is suitable for applications running on android SDK 21 and above. The project is meant to be compiled with the latest Android version.
To use the library inside your project, you need to access Github packages, you need to create a Personal access tokens and use it as credential.
maven {
url = uri("https://maven.pkg.github.com/SRGSSR/pillarbox-android")
credentials {
username = GITHUB_USER
password = GITHUB_TOKEN // with read:packages access!
}
}
Do not set those credentials inside your repository!
implementation("ch.srgssr.pillarbox:pillarbox-player:$LATEST_RELEASE_VERSION")
// Library to handle SRG content through media urns
implementation("ch.srgssr.pillarbox:pillarbox-core-business:$LATEST_RELEASE_VERSION")
Get the latest version
If not enabled already, you also need to turn on Java 17 support in every
build.gradle
/build.gradle.kts
files, by adding/updating the following to the
android
section:
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
If you want to contribute to the project have a look at our contributing guide.
See the LICENSE file for more information.