Add bitrate to streaming info section
This commit is contained in:
parent
05a919d387
commit
f1241bd692
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user