添加更多菜单

This commit is contained in:
zhw2590582 committed 2019-04-20 19:49:08 +08:00
1 parent 8495892a75
commit a9a3796744
8 files changed
+82 -9

No files matched your search

+10
View File
@@ -40,6 +40,16 @@ This will add a button called "GIF" in the bottom control bar.
var art = new Artplayer({
container: '.artplayer-app',
url: 'path/to/video.mp4',
controls: [
{
name: 'gif',
position: 'right',
html: '创建GIF',
mounted: $gif => {
art.plugins.artplayerPluginGif.attach($gif);
},
},
],
plugins: [artplayerPluginGif],
});
```