Shivam Kumar Jha
04/06/2024, 3:09 PMShivam Kumar Jha
04/06/2024, 3:10 PMBox(
modifier = modifier,
contentAlignment = Alignment.Center,
) {
content(this) //Swing panel or Exoplayer or AvPlayer
if (state.playbackState == PlaybackState.BUFFERING.ordinal && !state.controlsVisible) {
BufferIndicator(modifier = Modifier.align(Alignment.Center))
}
MediaControlGestures(
state,
modifier = Modifier.matchParentSize(),
) { event ->
handlePlayerEvent(event)
}
MediaControlButtons(
state,
modifier = Modifier.matchParentSize(),
) { event ->
handlePlayerEvent(event)
}
}
In desktop cant see my other UI components which should be on top unless i make swingpanel size 0dp. Works fine in Android and IOS.
kotlin = "1.9.22"
compose = "1.6.4"
Alexander Maryanovsky
04/06/2024, 3:19 PMIvan Matkov
04/06/2024, 4:24 PMor AvPlayerThere are a huge difference what type of view you're trying to place. There are 3 types here: swing lite-weight components, system "heavyweight" and GPU accelerated ones.
compose = "1.6.4"There is no such version of Compose Multiplatform, it's probably Google's Jetpack compose for Android version Also see my comment regarding video players here: https://github.com/JetBrains/compose-multiplatform/issues/4389#issuecomment-1970570215