Close Android stream viewer after playback ends
This commit is contained in:
1 parent
7454bebb14
commit
0475df8412
1 file changed
+7
-1
+7
-1
@@ -96,7 +96,13 @@ internal fun StreamViewerScreen(group: Long, source: Long, epoch: Long, title: S
|
||||
LogManager.addLog("INFO", "stream", "viewer orientation source=$source aspect=$aspect requested=$orientation")
|
||||
}
|
||||
}
|
||||
LaunchedEffect(status) { controls = true }
|
||||
LaunchedEffect(status) {
|
||||
controls = true
|
||||
if (status == R.string.stream_ended) {
|
||||
LogManager.addLog("INFO", "stream", "viewer ended; closing window group=$group source=$source epoch=$epoch")
|
||||
onClose()
|
||||
}
|
||||
}
|
||||
LaunchedEffect(controls, status, visible, hideTick) {
|
||||
if (controls && status == R.string.stream_live && visible) { delay(3000); controls = false }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user