mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 08:51:20 -08:00
Update README.md
This commit is contained in:
1 parent
2560cee937
commit
cb2116fa9c
1 file changed
+18
-6
+18
-6
@@ -495,8 +495,20 @@ var art = new Artplayer({
|
|||||||
container: '.artplayer-app',
|
container: '.artplayer-app',
|
||||||
url: url + '/video/one-more-time-one-more-chance-480p.mp4',
|
url: url + '/video/one-more-time-one-more-chance-480p.mp4',
|
||||||
icons: {
|
icons: {
|
||||||
loading: 'Loading...',
|
loading: '',
|
||||||
playBig: 'PLAY',
|
state: '',
|
||||||
|
play: '',
|
||||||
|
pause: '',
|
||||||
|
volume: '',
|
||||||
|
volumeClose: '',
|
||||||
|
subtitle: '',
|
||||||
|
screenshot: '',
|
||||||
|
setting: '',
|
||||||
|
fullscreen: '',
|
||||||
|
fullscreenWeb: '',
|
||||||
|
pip: '',
|
||||||
|
prev: '',
|
||||||
|
next: '',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
@@ -740,10 +752,10 @@ var art = new Artplayer({
|
|||||||
url: url + '/video/one-more-time-one-more-chance-480p.mp4',
|
url: url + '/video/one-more-time-one-more-chance-480p.mp4',
|
||||||
contextmenu: [
|
contextmenu: [
|
||||||
{
|
{
|
||||||
html: '自定义菜单 - 天亮请关灯 Σ(っ °Д °;)っ',
|
html: 'Custom menu',
|
||||||
click: function() {
|
click: function(contextmenu) {
|
||||||
document.querySelector('.video-wrap').classList.toggle('dark');
|
console.info('You clicked on the custom menu');
|
||||||
this.show = false;
|
contextmenu.show = false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in new issue
Block a user