优化demo

This commit is contained in:
Harvey committed 2019-11-27 16:14:43 +08:00
1 parent a836852e48
commit 06fc487482
14 files changed
+75 -56

No files matched your search

+4 -7
View File
@@ -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);
});
});