update docs

This commit is contained in:
Harvey Zack committed 2022-07-18 21:42:18 +08:00
1 parent e793fea93e
commit bcd8010ade
125 files changed
+420 -385

No files matched your search

@@ -886,6 +886,8 @@ Set a preview map on the progress bar
| `url` | `String` | Preview url |
| `number` | `Number` | Preview number |
| `column` | `Number` | Preview column |
| `width` | `Number` | Preview width |
| `height` | `Number` | Preview height |
<div className="run-code">▶ Run Code</div>
@@ -58,13 +58,16 @@ var art = new Artplayer({
<div className="run-code">▶ Run Code</div>
```js
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
muted: true,
}, function() {
this.play();
});
var art = new Artplayer(
{
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
muted: true,
},
function () {
this.play();
},
);
```
:::tip 提示
@@ -73,7 +76,6 @@ var art = new Artplayer({
:::
## poster
- 类型: `String`
@@ -884,6 +886,8 @@ var art = new Artplayer({
| `url` | `String` | 预览图地址 |
| `number` | `Number` | 预览图数量 |
| `column` | `Number` | 预览图列数 |
| `width` | `Number` | 预览图宽度 |
| `height` | `Number` | 预览图高度 |
<div className="run-code">▶ Run Code</div>
@@ -1137,4 +1141,4 @@ var art = new Artplayer({
url: '/assets/sample/video.mp4',
airplay: true,
});
```
```
+2
View File
@@ -163,6 +163,8 @@ export default class Artplayer extends Emitter {
url: '',
number: 60,
column: 10,
width: 0,
height: 0,
},
subtitle: {
url: '',
+2
View File
@@ -102,6 +102,8 @@ export default {
url: s,
number: n,
column: n,
width: n,
height: n,
},
subtitle: {
url: s,
+10
View File
@@ -453,6 +453,16 @@ type Option = {
* The thumbnail column size
*/
column?: number;
/**
* The thumbnail width
*/
width?: number;
/**
* The thumbnail height
*/
height?: number;
};
/**