Browse Source

VideoPlayer. remove println

pull/2154/head
Igor Demin 2 years ago committed by GitHub
parent
commit
840b7f3cb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      experimental/components/VideoPlayer/library/src/desktopMain/kotlin/org/jetbrains/compose/videoplayer/DesktopVideoPlayer.kt

4
experimental/components/VideoPlayer/library/src/desktopMain/kotlin/org/jetbrains/compose/videoplayer/DesktopVideoPlayer.kt

@ -16,7 +16,6 @@ import java.util.*
@Composable
internal actual fun VideoPlayerImpl(url: String, width: Int, height: Int) {
println("Video player for $url")
NativeDiscovery().discover()
val mediaPlayerComponent = remember {
// see https://github.com/caprica/vlcj/issues/887#issuecomment-503288294 for why we're using CallbackMediaPlayerComponent for macOS.
@ -27,8 +26,7 @@ internal actual fun VideoPlayerImpl(url: String, width: Int, height: Int) {
}
}
SideEffect {
val ok = mediaPlayerComponent.mediaPlayer().media().play(url)
println("play gave $ok")
mediaPlayerComponent.mediaPlayer().media().play(url)
}
return SwingPanel(
background = Color.Transparent,

Loading…
Cancel
Save