mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
22 lines
535 B
JavaScript
22 lines
535 B
JavaScript
var url = 'https://zhw2590582.github.io/assets-cdn';
|
|
var art = new Artplayer({
|
|
container: '.artplayer-app',
|
|
url: url + '/video/your-name.mp4',
|
|
autoSize: true,
|
|
localVideo: true,
|
|
moreVideoAttr: {
|
|
crossOrigin: 'anonymous',
|
|
},
|
|
controls: [
|
|
{
|
|
name: 'open',
|
|
position: 'right',
|
|
html: 'Local Video',
|
|
mounted: $open => {
|
|
art.plugins.localVideo.attach($open);
|
|
},
|
|
},
|
|
],
|
|
plugins: [artplayerPluginBacklight],
|
|
});
|