mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #768 from timhobbs/master
Video stops if paused 5 minutes
This commit is contained in:
commit
f60a6df8ce
1 changed files with 9 additions and 0 deletions
|
@ -921,6 +921,11 @@
|
|||
$("#pause", videoElement).hide().removeClass("fadeOut");
|
||||
}, 300);
|
||||
|
||||
// Pause stop timer
|
||||
this.pauseStop = setTimeout(function () {
|
||||
self.stop();
|
||||
}, 5 * 60 * 1000); // 5 minutes
|
||||
|
||||
}).on("playing", function (e) {
|
||||
|
||||
$('#video-playButton', videoControls).hide();
|
||||
|
@ -930,6 +935,10 @@
|
|||
$("#play", videoElement).hide().removeClass("fadeOut");
|
||||
}, 300);
|
||||
|
||||
// Remove pause setop timer
|
||||
window.clearTimeout(this.pauseStop);
|
||||
delete this.pauseStop;
|
||||
|
||||
}).on("timeupdate", function () {
|
||||
|
||||
if (!self.isPositionSliderActive) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue