mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
reset subtitleOffset and showtrackOffset values on next episode play
This commit is contained in:
parent
6fc86211c6
commit
cedaa66bf8
1 changed files with 11 additions and 0 deletions
|
@ -280,6 +280,8 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
|
||||||
|
|
||||||
self._currentTime = null;
|
self._currentTime = null;
|
||||||
|
|
||||||
|
self.resetSubtitleOffset();
|
||||||
|
|
||||||
return createMediaElement(options).then(function (elem) {
|
return createMediaElement(options).then(function (elem) {
|
||||||
|
|
||||||
return updateVideoUrl(options, options.mediaSource).then(function () {
|
return updateVideoUrl(options, options.mediaSource).then(function () {
|
||||||
|
@ -556,6 +558,15 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
|
||||||
setCurrentTrackElement(index);
|
setCurrentTrackElement(index);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
self.resetSubtitleOffset = function() {
|
||||||
|
if (currentTrackOffset) {
|
||||||
|
currentTrackOffset = 0;
|
||||||
|
}
|
||||||
|
if (showTrackOffset) {
|
||||||
|
showTrackOffset = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
self.enableShowingSubtitleOffset = function() {
|
self.enableShowingSubtitleOffset = function() {
|
||||||
showTrackOffset = true;
|
showTrackOffset = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue