update controls

This commit is contained in:
Harvey Zack committed 2024-09-15 00:24:02 +08:00
1 parent 400ab2f9c4
commit 22dce779d1
4 files changed
+27 -13

No files matched your search

+18
View File
@@ -24,5 +24,23 @@ var art = new Artplayer({
column: 10,
scale: 0.85,
},
controls: [
{
position: 'right',
html: 'play',
index: 1,
click: function () {
window.video.play();
},
},
{
position: 'right',
html: 'pause',
index: 2,
click: function () {
window.video.pause();
},
},
],
proxy: artplayerProxyCanvas(),
});