29 lines
745 B
Kotlin
29 lines
745 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://api.aiosman.com/video/1.mp4",
|
|
"https://api.aiosman.com/video/2.mp4",
|
|
"https://api.aiosman.com/video/3.mp4",
|
|
"https://api.aiosman.com/video/4.mp4"
|
|
)
|
|
|
|
@Composable
|
|
fun ShortVideo() {
|
|
RiderProTheme {
|
|
Surface(color = MaterialTheme.colorScheme.background) {
|
|
ShortViewCompose(
|
|
videoItemsUrl = videoUrls,
|
|
clickItemPosition = 0
|
|
)
|
|
}
|
|
}
|
|
}
|
|
|