update docs

This commit is contained in:
Harvey Zack committed 2018-11-09 15:25:56 +08:00
1 parent 2a933206dc
commit 4fbb3442e0
10 files changed
+83 -36

No files matched your search

+22
View File
@@ -6,6 +6,9 @@ var app = new Artplayer({
poster: url + '/image/one-more-time-one-more-chance-poster.jpg',
pip: true,
autoSize: true,
screenshot: true,
setting: true,
loop: true,
theme: '#ffad00',
contextmenu: [
{
@@ -16,6 +19,25 @@ var app = new Artplayer({
}
}
],
layers: [
{
html: `<img style="width: 100px" src="${url}/image/your-name.png">`,
click: function () {
app.destroy(true);
app = new Artplayer({
autoplay: true,
container: '.artplayer-app',
url: url + '/video/you-name.mp4'
})
},
style: {
'position': 'absolute',
'top': '20px',
'right': '20px',
'opacity': '.9'
}
}
],
quality: [
{
default: true,