Embed: more fixes to do with showing the correct seek window in the progress bar
Embed: display more consistent timestamps across protocols and correctly show seekable range Embed: fix: don't force nonexistent forcePlayer value Embed: when info.unixoffset is known, display clock time based timestamps
This commit is contained in:
parent
c542155e10
commit
67d992e352
12 changed files with 178 additions and 22 deletions
|
@ -1067,7 +1067,7 @@ p.prototype.build = function (MistVideo,callback) {
|
|||
}
|
||||
});
|
||||
//override duration
|
||||
var lastduration = 1;
|
||||
var lastduration = Infinity;
|
||||
Object.defineProperty(this.api,"duration",{
|
||||
get: function(){
|
||||
return lastduration;
|
||||
|
@ -1079,7 +1079,7 @@ p.prototype.build = function (MistVideo,callback) {
|
|||
},
|
||||
set: function(value){
|
||||
var f = function(msg){
|
||||
video.playbackRate = msg.data.play_rate;
|
||||
video.playbackRate = msg.data.play_rate_curr;
|
||||
};
|
||||
player.ws.addListener("set_speed",f);
|
||||
send({type: "set_speed", play_rate: (value == 1 ? "auto" : value)});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue