refactor: Update video element in Artplayer to support custom canvas or video

This commit is contained in:
Harvey Zack committed 2024-08-22 00:21:23 +08:00
1 parent 5bbbaa398e
commit 52e424ad52
8 files changed
+54 -3

No files matched your search

@@ -297,6 +297,11 @@ function artplayerProxyWebAV() {
});
}
async function init() {
const isSupported = await (0, _avCliper.Combinator).isSupported();
if (!isSupported) {
art.notice.show = "WebAV is not supported";
throw new Error("WebAV is not supported");
}
stop();
reset();
if (clip) {