Add bitrate to streaming info section
This commit is contained in:
parent
05a919d387
commit
f1241bd692
|
@ -783,5 +783,10 @@
|
||||||
<translation>Level</translation>
|
<translation>Level</translation>
|
||||||
<extracomment>Video profile level</extracomment>
|
<extracomment>Video profile level</extracomment>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Bit Rate</source>
|
||||||
|
<translation>Bit Rate</translation>
|
||||||
|
<extracomment>Video streaming bit rate</extracomment>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
</TS>
|
</TS>
|
||||||
|
|
|
@ -505,6 +505,10 @@ function GetTranscodingStats(session)
|
||||||
if m.playbackInfo.mediaSources[0].MediaStreams <> invalid and m.playbackInfo.mediaSources[0].MediaStreams.Count() > 0
|
if m.playbackInfo.mediaSources[0].MediaStreams <> invalid and m.playbackInfo.mediaSources[0].MediaStreams.Count() > 0
|
||||||
stream = m.playbackInfo.mediaSources[0].MediaStreams[0]
|
stream = m.playbackInfo.mediaSources[0].MediaStreams[0]
|
||||||
sessionStats.push("** " + tr("Stream Information") + " **")
|
sessionStats.push("** " + tr("Stream Information") + " **")
|
||||||
|
if stream.BitRate <> invalid
|
||||||
|
data = tr("Bit Rate") + ": " + stream.BitRate
|
||||||
|
sessionStats.push(data)
|
||||||
|
end if
|
||||||
if stream.Codec <> invalid
|
if stream.Codec <> invalid
|
||||||
data = tr("Codec") + ": " + stream.Codec
|
data = tr("Codec") + ": " + stream.Codec
|
||||||
sessionStats.push(data)
|
sessionStats.push(data)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user