添加更多菜单

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],
});
```
@@ -187,7 +187,7 @@ class ArtplayerToolThumbnail extends Emitter {
context2D.font = '14px Georgia';
context2D.fillStyle = '#fff';
context2D.fillText(
`From: https://artplayer.org/thumbnail, Number: ${number}, Width: ${width}, Height: ${height}, Column: ${column}`,
`From: https://artplayer.org/, Number: ${number}, Width: ${width}, Height: ${height}, Column: ${column}`,
10,
canvas.height - 11,
);
+1 -1
View File
@@ -133,7 +133,7 @@ export default class Artplayer {
/**
* Initialize the custom whitelist
*/
whitelist?: [string, Function, regexp];
whitelist?: [string, Function];
/**
* Thumbnails option