mirror of
https://github.com/Rafostar/clapper.git
synced 2025-09-01 00:41:58 +02:00
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:
8
clapper_src/controls.js
vendored
8
clapper_src/controls.js
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user