Explorar el Código

Fix subtitle offset support. #35

Ian Walton hace 4 años
padre
commit
193cacf817
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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() {