mirror of https://github.com/calzoneman/sync.git
Fix stuck loading spinner on IE
This commit is contained in:
parent
c422fa65fc
commit
9db9856a4e
|
@ -82,6 +82,12 @@ window.VideoJSPlayer = class VideoJSPlayer extends Player
|
||||||
if CLIENT.leader
|
if CLIENT.leader
|
||||||
sendVideoUpdate()
|
sendVideoUpdate()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Workaround for IE-- even after seeking completes, the loading
|
||||||
|
# spinner remains.
|
||||||
|
@player.on('seeked', =>
|
||||||
|
$('.vjs-waiting').removeClass('vjs-waiting')
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -536,12 +536,15 @@
|
||||||
return sendVideoUpdate();
|
return sendVideoUpdate();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return _this.player.on('play', function() {
|
_this.player.on('play', function() {
|
||||||
_this.paused = false;
|
_this.paused = false;
|
||||||
if (CLIENT.leader) {
|
if (CLIENT.leader) {
|
||||||
return sendVideoUpdate();
|
return sendVideoUpdate();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
return _this.player.on('seeked', function() {
|
||||||
|
return $('.vjs-waiting').removeClass('vjs-waiting');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
})(this));
|
})(this));
|
||||||
|
|
Loading…
Reference in New Issue