mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 05:11:20 -08:00
add meun
This commit is contained in:
1 parent
4327787895
commit
e420005bcd
11 files changed
+233
-74
No files matched your search
+1
-11
@@ -28,17 +28,7 @@
|
||||
var player = new Artplayer({
|
||||
container: document.querySelector('.artplayer-app'),
|
||||
url: './video/frag_bunny.mp4',
|
||||
poster: './img/poster.png',
|
||||
contextmenu: [{
|
||||
text: 'custom1',
|
||||
link: 'https://github.com/zhw2590582/artplayer'
|
||||
},
|
||||
{
|
||||
text: 'custom2',
|
||||
click: (player) => {
|
||||
console.log(player);
|
||||
}
|
||||
}]
|
||||
poster: './img/poster.png'
|
||||
});
|
||||
|
||||
console.log(player);
|
||||
|
||||
Reference in new issue
Block a user