mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 01:21:20 -08:00
优化demo
This commit is contained in:
1 parent
a836852e48
commit
06fc487482
14 files changed
+75
-56
No files matched your search
@@ -4,7 +4,7 @@ var art = new Artplayer({
|
||||
url: url + '/video/one-more-time-one-more-chance-480p.mp4',
|
||||
title: '【新海诚动画】『秒速5センチメートル』',
|
||||
autoSize: true,
|
||||
localPreview: true,
|
||||
localVideo: true,
|
||||
moreVideoAttr: {
|
||||
crossOrigin: 'anonymous',
|
||||
},
|
||||
@@ -16,16 +16,13 @@ var art = new Artplayer({
|
||||
mounted: $gif => {
|
||||
art.plugins.artplayerPluginGif.attach($gif);
|
||||
},
|
||||
style: {
|
||||
marginRight: '15px'
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'open',
|
||||
position: 'right',
|
||||
html: 'Local video',
|
||||
html: 'Local Video',
|
||||
mounted: $open => {
|
||||
art.plugins.localPreview.attach($open);
|
||||
art.plugins.localVideo.attach($open);
|
||||
},
|
||||
},
|
||||
],
|
||||
@@ -40,4 +37,4 @@ art.on('artplayerPluginGif', image => {
|
||||
animatedImage.src = image;
|
||||
$popinner.innerHTML = '';
|
||||
$popinner.appendChild(animatedImage);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user