Skip to content

Commit

Permalink
Merge pull request #58 from Stremio/fix/subtitles-delay-direction
Browse files Browse the repository at this point in the history
fix(withHTMLSubitles): reverse subtitles delay direction
  • Loading branch information
jaruba authored Feb 2, 2024
2 parents b999315 + 5f9ce0a commit 55c83fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/withHTMLSubtitles/withHTMLSubtitles.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function withHTMLSubtitles(Video) {
}

subtitlesElement.style.bottom = offset + '%';
subtitlesRenderer.render(cuesByTime, videoState.time + delay).forEach(function(cueNode) {
subtitlesRenderer.render(cuesByTime, videoState.time - delay).forEach(function(cueNode) {
cueNode.style.display = 'inline-block';
cueNode.style.padding = '0.2em';
cueNode.style.whiteSpace = 'pre-wrap';
Expand Down

0 comments on commit 55c83fa

Please sign in to comment.