1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fixes #317 - Pausing for too long stops media & hitting play goes back to the previous restore point

This commit is contained in:
Luke Pulverenti 2014-04-06 22:06:09 -04:00
parent f60a6df8ce
commit 1a1efc1646
2 changed files with 32 additions and 21 deletions

View file

@ -60,8 +60,19 @@
return Math.floor(10000000 * (mediaElement || currentMediaElement).currentTime) + self.startTimeTicksOffset;
};
self.clearPauseStop = function() {
if (self.pauseStop) {
console.log('clearing pause stop timer');
window.clearTimeout(self.pauseStop);
self.pauseStop = null;
}
};
self.onPlaybackStopped = function () {
self.clearPauseStop();
$(this).off('ended.playbackstopped');
self.currentTimeElement.empty();
@ -1159,7 +1170,7 @@
var getItemFields = "MediaSources,Chapters";
self.getCurrentTargetInfo = function() {
self.getCurrentTargetInfo = function () {
return self.getTargets()[0];
};
}