Page Not Found
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.
diff --git a/docs/assets/example/danmuku.js b/docs/assets/example/danmuku.js index b81872a33..bde888982 100644 --- a/docs/assets/example/danmuku.js +++ b/docs/assets/example/danmuku.js @@ -1,6 +1,3 @@ -// 使用说明: -// https://github.com/zhw2590582/ArtPlayer/tree/master/packages/artplayer-plugin-danmuku - var art = new Artplayer({ container: '.artplayer-app', url: '/assets/sample/video.mp4', @@ -22,22 +19,22 @@ var art = new Artplayer({ controls: [ { position: 'right', - html: 'Hide', + html: '隐藏弹幕', click: function (_, event) { if (art.plugins.artplayerPluginDanmuku.isHide) { art.plugins.artplayerPluginDanmuku.show(); - event.target.innerText = 'Hide'; + event.target.innerText = '隐藏弹幕'; } else { art.plugins.artplayerPluginDanmuku.hide(); - event.target.innerText = 'Show'; + event.target.innerText = '显示弹幕'; } }, }, { position: 'right', - html: 'Send', + html: '发送弹幕', click: function () { - var text = prompt('Please enter', 'Danmu text'); + var text = prompt('请输入弹幕文本', '弹幕测试文本'); if (!text || !text.trim()) return; var color = '#' + Math.floor(Math.random() * 0xffffff).toString(16); art.plugins.artplayerPluginDanmuku.emit({ diff --git a/docs/document/404.html b/docs/document/404.html index 07823f74d..39019c30f 100644 --- a/docs/document/404.html +++ b/docs/document/404.html @@ -5,13 +5,13 @@
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.