In order to use create a player compatible with Storm Streaming Server in an Android application, Storm Library is required. It can be obtained in two ways:
implementation 'com.github.StormStreaming:stormlibrary-android:vx.y.z'
implementation 'com.google.android.exoplayer:exoplayer-core:2.13.2'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.13.2'
allprojects {
repositories {
…
maven { url 'https://jitpack.io' }
}
}
android {
defaultConfig {
...
minSdkVersion 21
multiDexEnabled true
}
...
compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
}
# Project-wide Gradle settings.
android.useAndroidX=true
android.enableJetifier=true
Please keep in mind that in order for Storm Android Library to work ExoPlayer library is also required. If you wish to install it, just add the following code to the build.gradle file (dependency section):
implementation 'com.google.android.exoplayer:exoplayer-core:2.13.2'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.13.2'
Installation guide - step by step
android {
defaultConfig {
...
minSdkVersion 21
multiDexEnabled true
}
...
compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
}
# Project-wide Gradle settings.
android.useAndroidX=true
android.enableJetifier=true