Skip to content

Instantly share code, notes, and snippets.

@Skyyo
Last active October 5, 2021 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Skyyo/2c77f97ebe024d45a04364e68bb7145a to your computer and use it in GitHub Desktop.
Save Skyyo/2c77f97ebe024d45a04364e68bb7145a to your computer and use it in GitHub Desktop.
LaunchedEffect(isCurrentItemVisible.value) {
if (!isCurrentItemVisible.value && playingItemIndex != null) {
viewModel.onPlayVideoClick(exoPlayer.currentPosition, playingItemIndex!!)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment