Moves the label to the bottom of the video

This commit is contained in:
Vitor Pamplona 2023-06-19 20:58:38 -04:00
parent e31ee031cb
commit d063c2990c

View File

@ -408,6 +408,23 @@ fun ChannelHeader(baseChannel: Channel, accountViewModel: AccountViewModel, nav:
nav("Channel/${baseChannel.idHex}")
}
) {
if (channel is LiveActivitiesChannel) {
val streamingUrl by remember(channelState) {
derivedStateOf {
channel.info?.streaming()
}
}
if (streamingUrl != null) {
Row(verticalAlignment = Alignment.CenterVertically) {
VideoView(
videoUri = streamingUrl!!,
description = null
)
}
}
}
Column(modifier = Modifier.padding(12.dp)) {
Row(verticalAlignment = Alignment.CenterVertically) {
RobohashAsyncImageProxy(
@ -458,23 +475,6 @@ fun ChannelHeader(baseChannel: Channel, accountViewModel: AccountViewModel, nav:
}
}
if (channel is LiveActivitiesChannel) {
val streamingUrl by remember(channelState) {
derivedStateOf {
channel.info?.streaming()
}
}
if (streamingUrl != null) {
Row(verticalAlignment = Alignment.CenterVertically, modifier = Modifier.padding(bottom = 5.dp)) {
VideoView(
videoUri = streamingUrl!!,
description = null
)
}
}
}
Divider(
modifier = Modifier.padding(start = 12.dp, end = 12.dp),
thickness = 0.25.dp