mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 08:51:20 -08:00
添加更多菜单
This commit is contained in:
1 parent
8495892a75
commit
a9a3796744
8 files changed
+82
-9
No files matched your search
@@ -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
@@ -133,7 +133,7 @@ export default class Artplayer {
|
||||
/**
|
||||
* Initialize the custom whitelist
|
||||
*/
|
||||
whitelist?: [string, Function, regexp];
|
||||
whitelist?: [string, Function];
|
||||
|
||||
/**
|
||||
* Thumbnails option
|
||||
|
||||
Reference in new issue
Block a user