add artplayer-plugin-blur

This commit is contained in:
Harvey Zack committed 2019-05-08 11:19:46 +08:00
1 parent e26f43e243
commit 950d6a3b3a
12 files changed
+1714 -1418

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
var url = 'https://zhw2590582.github.io/assets-cdn';
var art = new Artplayer({
container: '.artplayer-app',
url: url + '/video/you-name.mp4',
autoSize: true,
moreVideoAttr: {
crossOrigin: 'anonymous',
},
layers: [
{
style: {
position: 'absolute',
top: '50%',
left: '50%',
width: '200px',
height: '200px',
margin: '-100px 0 0 -100px',
},
mounted($layer) {
art.plugins.artplayerPluginBlur.attach($layer);
},
},
],
plugins: [artplayerPluginBlur],
});