Update video info during non-local file playback

With this player will always show current video resolution when playing fragmented media like HLS or MPD online videos
This commit is contained in:
Rafostar
2020-10-16 00:21:43 +02:00
parent 745747b604
commit 12c1251c9b
3 changed files with 32 additions and 14 deletions

View File

@@ -71,13 +71,9 @@ var Controls = GObject.registerClass({
setLiveMode(isLive, isSeekable)
{
/* This update must always happen
* after media duration is set */
let text = (isLive)
? 'LIVE'
: '00:00:00' + '/' + this.durationFormated;
if(isLive)
this.elapsedButton.set_label('LIVE');
this.elapsedButton.set_label(text);
this.positionScale.visible = isSeekable;
}