fix: only overflow direct play
This commit is contained in:
@@ -54,7 +54,7 @@ export default function MediaInformation() {
|
|||||||
<Label numberOfLines={1} overflow>
|
<Label numberOfLines={1} overflow>
|
||||||
{track.isDirectPlay ? t('direct-play') : t('transcoded')}
|
{track.isDirectPlay ? t('direct-play') : t('transcoded')}
|
||||||
</Label>
|
</Label>
|
||||||
<Label numberOfLines={1} overflow>
|
<Label numberOfLines={1}>
|
||||||
{track.isDirectPlay
|
{track.isDirectPlay
|
||||||
? mediaStream?.Codec.toUpperCase()
|
? mediaStream?.Codec.toUpperCase()
|
||||||
: track.contentType?.replace('audio/', '').toUpperCase()
|
: track.contentType?.replace('audio/', '').toUpperCase()
|
||||||
@@ -62,12 +62,12 @@ export default function MediaInformation() {
|
|||||||
</Label>
|
</Label>
|
||||||
{mediaStream && (
|
{mediaStream && (
|
||||||
<>
|
<>
|
||||||
<Label numberOfLines={1} overflow>
|
<Label numberOfLines={1}>
|
||||||
{((track.isDirectPlay ? mediaStream.BitRate : track.bitRate) / 1000)
|
{((track.isDirectPlay ? mediaStream.BitRate : track.bitRate) / 1000)
|
||||||
.toFixed(0)}
|
.toFixed(0)}
|
||||||
{t('kbps')}
|
{t('kbps')}
|
||||||
</Label>
|
</Label>
|
||||||
<Label numberOfLines={1} overflow>
|
<Label numberOfLines={1}>
|
||||||
{(mediaStream.SampleRate / 1000).toFixed(1)}
|
{(mediaStream.SampleRate / 1000).toFixed(1)}
|
||||||
{t('khz')}
|
{t('khz')}
|
||||||
</Label>
|
</Label>
|
||||||
|
|||||||
Reference in New Issue
Block a user