Skip to main content

Overview


LORA Short Video is an external LORA SDK module that can be used independently.

Features

  • Video Grid View
  • Video Carousel View
  • Video Story Block View
  • Video Detail Player (with landscape layout support)
  • Playlist
  • PiP

Getting started


Project setup

The Short Video module requires a LORA core module, LORA common module, and other third-party libraries to function properly.

In your build.gradle dependencies:

    // sdk aar files & required dependencies
implementation (name:'lora-core-release', ext:'aar')
implementation (name:'lora-common-release', ext:'aar')
implementation (name:'lora-shortvideo-release', ext:'aar')
implementation 'io.insert-koin:koin-android:3.4.0'
implementation 'androidx.media3:media3-exoplayer:1.0.2'
implementation 'androidx.media3:media3-ui:1.0.2'
implementation 'androidx.media3:media3-exoplayer-hls:1.0.2'
implementation "com.squareup.retrofit2:retrofit:2.9.0"
implementation "com.squareup.retrofit2:converter-gson:2.9.0"
implementation "com.squareup.okhttp3:logging-interceptor:4.9.0"
implementation 'com.github.bumptech.glide:glide:4.15.1'
kapt 'com.github.bumptech.glide:compiler:4.15.1'

Initialize the SDK

The LORA SDK requires a license key for initialization. Please contact us for information about this key.

Use the following code to initialize the SDK. You can place it in the onCreate of the main screen or in the application class.

val loraSdkProvider = LoraSdkProvider(context)
loraSdkProvider.init(LICENSE_KEY)