mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 05:41:20 -08:00
refactor: Update video element resizing logic in Artplayer and artplayer-proxy-webav
This commit is contained in:
1 parent
84986d384a
commit
6f6d49bbae
7 files changed
+16
-11
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { MP4Clip, Combinator } from '@webav/av-cliper';
|
||||
|
||||
export default function artplayerProxyWebAV() {
|
||||
export default function artplayerProxyWebAV(opt = {}) {
|
||||
return (art) => {
|
||||
const { option, constructor } = art;
|
||||
const { createElement, def } = constructor.utils;
|
||||
@@ -201,7 +201,7 @@ export default function artplayerProxyWebAV() {
|
||||
throw new Error('No response body');
|
||||
}
|
||||
|
||||
clip = new MP4Clip(response.body);
|
||||
clip = new MP4Clip(response.body, opt);
|
||||
} catch (error) {
|
||||
art.emit('video:error', error);
|
||||
throw error;
|
||||
|
||||
Reference in new issue
Block a user