refactor: Update video element resizing logic in Artplayer and artplayer-proxy-webav

This commit is contained in:
Harvey Zack committed 2024-08-22 18:29:23 +08:00
1 parent 84986d384a
commit 6f6d49bbae
7 files changed
+16 -11

No files matched your search

@@ -1,5 +1,8 @@
export default function artplayerProxyLibmedia(option) {
export default function artplayerProxyLibmedia(opt = {}) {
return (art) => {
const { option, constructor } = art;
const { createElement, def } = constructor.utils;
return document.createElement('video');
};
}
@@ -7,8 +7,6 @@ type Option = {
//
};
type Result = {
name: 'artplayerProxyLibmedia';
};
type Result = HTMLCanvasElement;
declare const artplayerProxyLibmedia: (option: Option) => (art: Artplayer) => Result;