mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 23:51:20 -08:00
update docs
This commit is contained in:
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`
|
||||
|
||||
Reference in new issue
Block a user