Comment on page
Customize Dependencies
Control the modules added to your Android Project
The Leia Media SDK allows customizing the modules you want to add to your project. You can get access to the entire SDK using the dependency for the bundled SDK.
This is the most recommended way to use the SDK, since it will always include the latest modules while also maintaining compatibility among them.
dependencies {
implementation "com.leiainc:androidmediasdk:0.0.2"
}
Optionally, you might want control over the modules added to your Android application, in order to optimize apk sizes.
The Android SDK provides standalone modules which you could include in your app, depending upon the use case of your app. The individual modules are packaged based on the different steps of the decoding pipeline.
Module | Latest Version | Available APIs |
com.leiainc:androidsdk-core | 1.7.22 | |
com.leiainc:androidsdk-photoformat | 5.0.11 | |
com.leiainc:androidsdk-sbs | 1.8.24 |
|
com.leiainc:androidsdk-sbs-video | 0.16.3 |
The core SDK provides the QuadView and the LeiaDisplayManager. If your use case is to only display Quad images, display Quad videos and control the backlight, add the core SDK to your app's
build.gradle
file.dependencies {
implementation 'com.leiainc:androidsdk-core:1.7.22'
}
dependencies {
implementation 'com.leiainc:androidsdk-photoformat:5.0.11'
}
This module packages the Multiview Synthesizer which can be used for a variety of operations like View Synthesis, retrieving Quad Bitmaps and Disparity Estimation.
To include this module, add this dependency to your app's
build.gradle
filedependencies {
implementation 'com.leiainc:androidsdk-sbs:1.8.24'
}
The module packages the
SbsVideoSurfaceRender
which enables support for SBS videos in your Android project.Add the following dependency to your app's
build.gradle
file to support playing SBS videos.dependencies {
implementation 'com.leiainc:androidsdk-sbs-video:0.16.3'
}
Last modified 2yr ago