|
|
@ -1,6 +1,7 @@ |
|
|
|
package org.jetbrains.compose.videoplayer.demo |
|
|
|
package org.jetbrains.compose.videoplayer.demo |
|
|
|
|
|
|
|
|
|
|
|
import androidx.compose.material.MaterialTheme |
|
|
|
import androidx.compose.material.MaterialTheme |
|
|
|
|
|
|
|
import androidx.compose.ui.unit.dp |
|
|
|
import androidx.compose.ui.window.WindowState |
|
|
|
import androidx.compose.ui.window.WindowState |
|
|
|
import androidx.compose.ui.window.singleWindowApplication |
|
|
|
import androidx.compose.ui.window.singleWindowApplication |
|
|
|
import org.jetbrains.compose.videoplayer.VideoPlayer |
|
|
|
import org.jetbrains.compose.videoplayer.VideoPlayer |
|
|
@ -8,7 +9,7 @@ import org.jetbrains.compose.videoplayer.VideoPlayer |
|
|
|
fun main() { |
|
|
|
fun main() { |
|
|
|
singleWindowApplication( |
|
|
|
singleWindowApplication( |
|
|
|
title = "Video Player", |
|
|
|
title = "Video Player", |
|
|
|
state = WindowState(width = 800, height = 800) |
|
|
|
state = WindowState(width = 800.dp, height = 800.dp) |
|
|
|
) { |
|
|
|
) { |
|
|
|
MaterialTheme { |
|
|
|
MaterialTheme { |
|
|
|
VideoPlayer( |
|
|
|
VideoPlayer( |
|
|
|