mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-28 11:17:08 +02:00
Runs the DisposableEffect before moving to load the video.
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user