Runs the DisposableEffect before moving to load the video.

This commit is contained in:
Vitor Pamplona
2023-07-25 09:03:56 -04:00
parent 39fccd5442
commit a2d9a3f770

View File

@@ -324,10 +324,6 @@ fun GetVideoController(
}
}
controller.value?.let {
inner(it, keepPlaying)
}
// User pauses and resumes the app. What to do with videos?
val scope = rememberCoroutineScope()
val lifeCycleOwner = LocalLifecycleOwner.current
@@ -392,6 +388,10 @@ fun GetVideoController(
}
}
}
controller.value?.let {
inner(it, keepPlaying)
}
}
// background playing mutex.