mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-15 09:06:16 -08:00
update mobile demo
This commit is contained in:
1 parent
2ffdaa6175
commit
9cefead73e
5 files changed
+30
-2
No files matched your search
@@ -124,6 +124,21 @@
|
||||
},
|
||||
},
|
||||
],
|
||||
controls: [
|
||||
{
|
||||
position: 'right',
|
||||
html: '<img width="22" heigth="22" src="/assets/img/danmu-on.svg">',
|
||||
click: function (_, event) {
|
||||
if (art.plugins.artplayerPluginDanmuku.isHide) {
|
||||
art.plugins.artplayerPluginDanmuku.show();
|
||||
event.target.src = '/assets/img/danmu-on.svg';
|
||||
} else {
|
||||
art.plugins.artplayerPluginDanmuku.hide();
|
||||
event.target.src = '/assets/img/danmu-off.svg';
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
plugins: [
|
||||
artplayerPluginDanmuku({
|
||||
danmuku: '/assets/sample/danmuku.xml',
|
||||
|
||||
Reference in new issue
Block a user