Add bitrate to streaming info section

This commit is contained in:
Jimi 2022-09-20 09:52:44 -06:00
parent 05a919d387
commit f1241bd692
2 changed files with 9 additions and 0 deletions

View File

@ -783,5 +783,10 @@
<translation>Level</translation>
<extracomment>Video profile level</extracomment>
</message>
<message>
<source>Bit Rate</source>
<translation>Bit Rate</translation>
<extracomment>Video streaming bit rate</extracomment>
</message>
</context>
</TS>

View File

@ -505,6 +505,10 @@ function GetTranscodingStats(session)
if m.playbackInfo.mediaSources[0].MediaStreams <> invalid and m.playbackInfo.mediaSources[0].MediaStreams.Count() > 0
stream = m.playbackInfo.mediaSources[0].MediaStreams[0]
sessionStats.push("** " + tr("Stream Information") + " **")
if stream.BitRate <> invalid
data = tr("Bit Rate") + ": " + stream.BitRate
sessionStats.push(data)
end if
if stream.Codec <> invalid
data = tr("Codec") + ": " + stream.Codec
sessionStats.push(data)