Browse Source

Fix subtitle offset support. #35

Ian Walton 3 years ago
parent
commit
193cacf817
1 changed files with 1 additions and 1 deletions
  1. 1 1
      native/mpvVideoPlayer.js

+ 1 - 1
native/mpvVideoPlayer.js

@@ -317,7 +317,7 @@
         setSubtitleOffset(offset) {
             const offsetValue = parseFloat(offset);
             this._currentTrackOffset = offsetValue;
-            window.api.player.setSubtitleDelay(offset);
+            window.api.player.setSubtitleDelay(Math.round(offsetValue * 1000));
         }
 
         getSubtitleOffset() {