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

+8 -1
View File
@@ -4,7 +4,7 @@
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/frag_bunny.mp4',
url: '/assets/sample/bbb-video.mp4',
volume: 0.5,
autoplay: false,
autoSize: false,
@@ -18,6 +18,13 @@ var art = new Artplayer({
fullscreenWeb: true,
miniProgressBar: true,
autoPlayback: true,
thumbnails: {
url: '/assets/sample/bbb-sprite.jpg',
number: 121,
column: 11,
width: 128,
height: 72,
},
proxy: artplayerProxyWebAV({
//
}),