mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed issue with not moving duration chromecast
This commit is contained in:
@@ -119,6 +119,7 @@ window.addEventListener('load', function() {
|
||||
|
||||
function durationSetter(){
|
||||
duration = player.getDuration();
|
||||
console.log(duration);
|
||||
dMinutes = Math.floor(duration / 60);
|
||||
dSeconds = duration - dMinutes * 60;
|
||||
currDurr = player.getCurrentTime() !== undefined ? Math.floor(player.getCurrentTime()) : seekTo;
|
||||
@@ -127,6 +128,7 @@ function durationSetter(){
|
||||
minutes = Math.floor(currDurr / 60);
|
||||
seconds = currDurr - (minutes * 60);
|
||||
document.getElementById("duration").innerHTML = pad(minutes)+":"+pad(seconds)+" <span id='dash'>/</span> "+pad(dMinutes)+":"+pad(dSeconds);
|
||||
setTimeout(durationSetter, 1000);
|
||||
}
|
||||
|
||||
function pad(n){
|
||||
|
||||
2
static/dist/main.min.js
vendored
2
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -169,7 +169,7 @@ function init(){
|
||||
},
|
||||
handles: "e",
|
||||
minWidth: 350,
|
||||
maxWidth: $(window).width()-221
|
||||
maxWidth: $(window).width()-241
|
||||
});
|
||||
|
||||
if(socket === undefined || Helper.mobilecheck()){
|
||||
|
||||
Reference in New Issue
Block a user