Update README.md

This commit is contained in:
Harvey committed 2019-08-15 09:01:54 +08:00
1 parent 2560cee937
commit cb2116fa9c
1 file changed
+18 -6
+18 -6
View File
@@ -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;
}, },
}, },
], ],