update docs

This commit is contained in:
Harvey committed 2021-12-31 13:45:46 +08:00
1 parent 6cb75858bb
commit feed451783
48 files changed
+170 -128

No files matched your search

@@ -199,6 +199,23 @@ var art = new Artplayer({
});
```
## autoHeight
- 类型: `Boolean`
- 默认: `false`
When the container has only width, you want the container adapt to the player height.
<div className="run-code">▶ Run Code</div>
```js
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
autoHeight: true,
});
```
## autoMini
- Type: `Boolean`
@@ -199,6 +199,23 @@ var art = new Artplayer({
});
```
## autoHeight
- 类型: `Boolean`
- 默认: `false`
当容器只有宽度,但你希望容器能自适应播放器时有用
<div className="run-code">▶ Run Code</div>
```js
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
autoHeight: true,
});
```
## autoMini
- 类型: `Boolean`