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?
|
// User pauses and resumes the app. What to do with videos?
|
||||||
val scope = rememberCoroutineScope()
|
val scope = rememberCoroutineScope()
|
||||||
val lifeCycleOwner = LocalLifecycleOwner.current
|
val lifeCycleOwner = LocalLifecycleOwner.current
|
||||||
@@ -392,6 +388,10 @@ fun GetVideoController(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
controller.value?.let {
|
||||||
|
inner(it, keepPlaying)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// background playing mutex.
|
// background playing mutex.
|
||||||
|
|||||||
Reference in New Issue
Block a user