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

Merge pull request #4362 from dmitrylyzo/fix-reset-subtitleoffset

Fix subtitle offset reset when seeking progressive stream
This commit is contained in:
Bill Thornton 2023-02-23 16:46:26 -05:00 committed by GitHub
commit af27e084d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -1677,6 +1677,7 @@ class PlaybackManager {
const streamInfo = createStreamInfo(apiClient, currentItem.MediaType, currentItem, currentMediaSource, ticks, player); const streamInfo = createStreamInfo(apiClient, currentItem.MediaType, currentItem, currentMediaSource, ticks, player);
streamInfo.fullscreen = currentPlayOptions.fullscreen; streamInfo.fullscreen = currentPlayOptions.fullscreen;
streamInfo.lastMediaInfoQuery = lastMediaInfoQuery; streamInfo.lastMediaInfoQuery = lastMediaInfoQuery;
streamInfo.resetSubtitleOffset = false;
if (!streamInfo.url) { if (!streamInfo.url) {
showPlaybackInfoErrorMessage(self, 'PlaybackErrorNoCompatibleStream'); showPlaybackInfoErrorMessage(self, 'PlaybackErrorNoCompatibleStream');

View file

@ -365,7 +365,7 @@ function tryRemoveElement(elem) {
this.#currentTime = null; this.#currentTime = null;
this.resetSubtitleOffset(); if (options.resetSubtitleOffset !== false) this.resetSubtitleOffset();
return this.createMediaElement(options).then(elem => { return this.createMediaElement(options).then(elem => {
return this.updateVideoUrl(options).then(() => { return this.updateVideoUrl(options).then(() => {