Skip to content

Commit

Permalink
Merge pull request #4362 from dmitrylyzo/fix-reset-subtitleoffset
Browse files Browse the repository at this point in the history
Fix subtitle offset reset when seeking progressive stream
  • Loading branch information
thornbill authored Feb 23, 2023
2 parents 8f75a42 + 1040685 commit af27e08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/playback/playbackmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1677,6 +1677,7 @@ class PlaybackManager {
const streamInfo = createStreamInfo(apiClient, currentItem.MediaType, currentItem, currentMediaSource, ticks, player);
streamInfo.fullscreen = currentPlayOptions.fullscreen;
streamInfo.lastMediaInfoQuery = lastMediaInfoQuery;
streamInfo.resetSubtitleOffset = false;

if (!streamInfo.url) {
showPlaybackInfoErrorMessage(self, 'PlaybackErrorNoCompatibleStream');
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/htmlVideoPlayer/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ function tryRemoveElement(elem) {

this.#currentTime = null;

this.resetSubtitleOffset();
if (options.resetSubtitleOffset !== false) this.resetSubtitleOffset();

return this.createMediaElement(options).then(elem => {
return this.updateVideoUrl(options).then(() => {
Expand Down

0 comments on commit af27e08

Please sign in to comment.