Explorar o código

Fix subtitle offset support. #35

Ian Walton %!s(int64=3) %!d(string=hai) anos
pai
achega
193cacf817
Modificáronse 1 ficheiros con 1 adicións e 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() {