mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 20:21:20 -08:00
update docs
This commit is contained in:
1 parent
2a933206dc
commit
4fbb3442e0
10 files changed
+83
-36
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user