28 lines
853 B
Kotlin
28 lines
853 B
Kotlin
|
|
package com.aiosman.riderpro
|
||
|
|
|
||
|
|
import android.app.Activity
|
||
|
|
import androidx.compose.material3.MaterialTheme
|
||
|
|
import androidx.compose.material3.Surface
|
||
|
|
import androidx.compose.runtime.Composable
|
||
|
|
import com.aiosman.riderpro.ShortViewCompose
|
||
|
|
import com.aiosman.riderpro.ui.theme.RiderProTheme
|
||
|
|
|
||
|
|
val videoUrls = listOf(
|
||
|
|
"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerBlazes.mp4",
|
||
|
|
"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
|
||
|
|
"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WeAreGoingOnBullrun.mp4"
|
||
|
|
)
|
||
|
|
|
||
|
|
@Composable
|
||
|
|
fun ShortVideo() {
|
||
|
|
RiderProTheme {
|
||
|
|
Surface(color = MaterialTheme.colorScheme.background) {
|
||
|
|
ShortViewCompose(
|
||
|
|
videoItemsUrl = videoUrls,
|
||
|
|
clickItemPosition = 0
|
||
|
|
)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|