fix(asr): [PKG-ASR-10] cancel recognition on native media errors

This commit is contained in:
Harvey Zhao committed 2026-09-15 14:25:59 +08:00
1 parent 3c89b48514
commit 9cf4a58480
21 files changed
+18402 -12

No files matched your search

+2
View File
@@ -379,12 +379,14 @@ function artplayerPluginAsr(option = {}) {
art.off("play", play);
art.off("pause", pause);
art.off("restart", restart);
art.off("video:error", stop);
art.off("destroy", destroy);
return capture.stop(true);
};
art.on("play", play);
art.on("pause", pause);
art.on("restart", restart);
art.on("video:error", stop);
art.on("destroy", destroy);
return { name: "artplayerPluginAsr", stop, hide: subtitles.hide, append: subtitles.append };
};