Fix subtitle offset support. #35

This commit is contained in:
Ian Walton 2021-04-16 17:32:16 -04:00
parent f58105d0cb
commit 193cacf817

View File

@ -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() {