Skip to content

Commit

Permalink
Enable auto-play videos
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandarIlic committed Apr 16, 2024
1 parent 2c09d7f commit fef875f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fun NoteAttachmentVideoPreview(
LaunchedEffect(mediaSource) {
exoPlayer.setMediaItem(mediaSource)
exoPlayer.prepare()
exoPlayer.playWhenReady = false
exoPlayer.playWhenReady = true
exoPlayer.repeatMode = ExoPlayer.REPEAT_MODE_ALL
exoPlayer.volume = if (isMuted) 0.0f else 1.0f
}
Expand Down

0 comments on commit fef875f

Please sign in to comment.