mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-16 01:26:16 -08:00
update controls
This commit is contained in:
1 parent
400ab2f9c4
commit
22dce779d1
4 files changed
+27
-13
No files matched your search
@@ -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(),
|
||||
});
|
||||
Reference in new issue
Block a user