mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
添加设置控制器
This commit is contained in:
1 parent
711cf5684a
commit
9eab1ed6c0
24 files changed
+297
-119
No files matched your search
+9
-3
@@ -37,6 +37,15 @@
|
||||
width: 190,
|
||||
height: 107
|
||||
},
|
||||
contextmenu: [
|
||||
{
|
||||
html: '自定义菜单 - 天黑请关灯 Σ(っ °Д °;)っ',
|
||||
click: function () {
|
||||
document.body.classList.toggle('dark');
|
||||
this.hide();
|
||||
}
|
||||
}
|
||||
],
|
||||
quality: [
|
||||
{
|
||||
default: true,
|
||||
@@ -92,10 +101,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
// console.dir(Artplayer);
|
||||
|
||||
console.log(player);
|
||||
|
||||
Artplayer.config.video.events.forEach(item => {
|
||||
player.on('video:' + item, event => {
|
||||
console.log('video', event);
|
||||
|
||||
Reference in new issue
Block a user