Add audio channels to stats page.

This commit is contained in:
SergeantPanda 2025-06-10 09:23:43 -05:00
parent efaa64d00b
commit b8992bde64
2 changed files with 8 additions and 0 deletions

View file

@ -494,6 +494,9 @@ class ChannelStatus:
audio_codec = metadata.get(ChannelMetadataField.AUDIO_CODEC.encode('utf-8'))
if audio_codec:
info['audio_codec'] = audio_codec.decode('utf-8')
audio_channels = metadata.get(ChannelMetadataField.AUDIO_CHANNELS.encode('utf-8'))
if audio_channels:
info['audio_channels'] = audio_channels.decode('utf-8')
return info
except Exception as e:

View file

@ -497,6 +497,11 @@ const ChannelCard = ({ channel, clients, stopClient, stopChannel, logos, channel
{channel.audio_codec.toUpperCase()}
</Badge>
)}
{channel.audio_channels && (
<Badge size="sm" variant="light" color="purple">
{channel.audio_channels}
</Badge>
)}
{channel.ffmpeg_speed && (
<Tooltip label={`Speed: ${channel.ffmpeg_speed}x realtime`}>
<Badge