Add Android live stream audio switch and document radio behavior
This commit is contained in:
1 parent
e3fb8377ab
commit
7e7d86e4d3
2 files changed
+24
-2
No files matched your search
@@ -123,6 +123,13 @@ fun StreamScreen(channelId: String, channelName: String, sources: List<StreamSou
|
||||
}) { padding ->
|
||||
Column(Modifier.fillMaxSize().padding(padding).padding(12.dp), verticalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
Text(channelName, style = MaterialTheme.typography.titleMedium)
|
||||
if (local?.ongoing == true && (selected == null || selected.self)) {
|
||||
Row {
|
||||
Checkbox(checked = local.audioEnabled, onCheckedChange = StreamController::setAudioEnabled,
|
||||
enabled = local.phase == StreamPhase.LIVE && local.audioAvailable)
|
||||
Text(stringResource(R.string.stream_audio), Modifier.padding(top = 12.dp))
|
||||
}
|
||||
}
|
||||
if (selected != null) {
|
||||
Text(selected.displayName, style = MaterialTheme.typography.titleSmall)
|
||||
if (selected.self && local?.ongoing == true) {
|
||||
|
||||
Reference in new issue
Block a user