Selaa lähdekoodia

Fix subtitle offset support. #35

Ian Walton 4 vuotta sitten
vanhempi
commit
193cacf817
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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() {