Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaXser authored Jan 15, 2024
1 parent c408d13 commit bed3abd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,6 @@ class VideoHandler {
}
}

// В коде есть проблема "Promise returned in function argument where a void return was expected"
initUIEvents() {
// VOT Button
{
Expand Down Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit bed3abd

Please sign in to comment.