diff --git a/src/index.js b/src/index.js index 1681107b..e85f5d46 100644 --- a/src/index.js +++ b/src/index.js @@ -792,7 +792,6 @@ class VideoHandler { } } - // В коде есть проблема "Promise returned in function argument where a void return was expected" initUIEvents() { // VOT Button { @@ -1270,7 +1269,6 @@ class VideoHandler { addExtraEventListener(this.video, "abort", () => { debug.log("lipsync mode is abort"); this.stopTranslation(); - this.videoData = ""; }); addExtraEventListener(this.video, "progress", async () => { @@ -1606,19 +1604,19 @@ class VideoHandler { } return; } - if (mode === "pause") { + if (mode == "pause") { debug.log("lipsync mode is pause"); this.audio.pause(); } - if (mode === "stop") { + if (mode == "stop") { debug.log("lipsync mode is stop"); this.audio.pause(); } - if (mode === "waiting") { + if (mode == "waiting") { debug.log("lipsync mode is waiting"); this.audio.pause(); } - if (mode === "playing") { + if (mode == "playing") { debug.log("lipsync mode is playing"); this.audio.play(); }