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

This commit is contained in:
Harvey Zack committed 2024-08-18 21:06:56 +08:00
1 parent 7fa69a7de8
commit 7f6c9c8ee1
27 files changed
+326 -287

No files matched your search

-8
View File
@@ -1,8 +0,0 @@
// npm i artplayer-plugin-canvas
// import ArtplayerPluginCanvas from 'artplayer-plugin-canvas';
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
Canvas: ArtplayerPluginCanvas,
});
+10
View File
@@ -0,0 +1,10 @@
// npm i artplayer-proxy-libmedia
// import artplayerProxyLibmedia from 'artplayer-proxy-libmedia';
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
proxy: artplayerProxyLibmedia({
//
}),
});
+10
View File
@@ -0,0 +1,10 @@
// npm i artplayer-proxy-webav
// import artplayerProxyWebAV from 'artplayer-proxy-webav';
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
proxy: artplayerProxyWebAV({
//
}),
});