mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 09:41:20 -08:00
fix(asr): [PKG-ASR-10] cancel recognition on native media errors
This commit is contained in:
1 parent
3c89b48514
commit
9cf4a58480
21 files changed
+18402
-12
No files matched your search
@@ -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 };
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user