MacOS player does not stop after closing the player screen.
I'm not sure what this is about, but modifying the rememberVideoPlayerState fixes it.
@Composable
fun rememberVideoPlayerState(): VideoPlayerState {
val playerState = remember { VideoPlayerState() }
DisposableEffect(Unit) {
onDispose {
playerState.stop() //Calling stop fixes this
playerState.dispose()
}
}
return playerState
}
MacOS player does not stop after closing the player screen.
I'm not sure what this is about, but modifying the
rememberVideoPlayerStatefixes it.