mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 19:06:34 +02:00
Removing autoplay due to audio (need to figure out how to mute first)
This commit is contained in:
@@ -27,7 +27,6 @@ fun VideoView(videoUri: String) {
|
|||||||
val context = LocalContext.current
|
val context = LocalContext.current
|
||||||
|
|
||||||
val exoPlayer = ExoPlayer.Builder(LocalContext.current).build().apply {
|
val exoPlayer = ExoPlayer.Builder(LocalContext.current).build().apply {
|
||||||
playWhenReady = true
|
|
||||||
repeatMode = Player.REPEAT_MODE_ALL
|
repeatMode = Player.REPEAT_MODE_ALL
|
||||||
videoScalingMode = C.VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING
|
videoScalingMode = C.VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING
|
||||||
setMediaItem(MediaItem.fromUri(videoUri))
|
setMediaItem(MediaItem.fromUri(videoUri))
|
||||||
|
Reference in New Issue
Block a user