소스 검색

Fix subtitle offset support. #35

Ian Walton 4 년 전
부모
커밋
193cacf817
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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() {