mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-14 00:06:17 -08:00
update docs
This commit is contained in:
1 parent
90de9ea6ee
commit
1b245648ac
2 files changed
+28
-28
No files matched your search
@@ -652,28 +652,6 @@ art.on('ready', () => {
|
||||
});
|
||||
```
|
||||
|
||||
## autoHeight
|
||||
|
||||
- Type: `Setter/Getter`
|
||||
- Default: `Boolean`
|
||||
|
||||
When the container has only width, you want the container height adapt to the player aspect ratio.
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
```js
|
||||
var art = new Artplayer({
|
||||
container: '.artplayer-app',
|
||||
url: '/assets/sample/video.mp4',
|
||||
});
|
||||
|
||||
art.on('ready', () => {
|
||||
console.info(art.autoHeight);
|
||||
art.autoHeight = true;
|
||||
console.info(art.autoHeight);
|
||||
});
|
||||
```
|
||||
|
||||
## loop
|
||||
|
||||
- Type: `Setter/Getter`
|
||||
@@ -702,6 +680,28 @@ Delete interval loop play, only need to set up `loop` is `[]`
|
||||
|
||||
:::
|
||||
|
||||
## autoHeight
|
||||
|
||||
- Type: `Setter/Getter`
|
||||
- Default: `Boolean`
|
||||
|
||||
When the container has only width, you want the container height adapt to the player aspect ratio.
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
```js
|
||||
var art = new Artplayer({
|
||||
container: '.artplayer-app',
|
||||
url: '/assets/sample/video.mp4',
|
||||
});
|
||||
|
||||
art.on('ready', () => {
|
||||
console.info(art.autoHeight);
|
||||
art.autoHeight = true;
|
||||
console.info(art.autoHeight);
|
||||
});
|
||||
```
|
||||
|
||||
## destroy
|
||||
|
||||
- Type: `Function`
|
||||
|
||||
@@ -674,6 +674,12 @@ art.on('ready', () => {
|
||||
})
|
||||
```
|
||||
|
||||
:::tip 提示
|
||||
|
||||
删除区间循环播放,只需要设置 `loop` 为 `[]` 即可
|
||||
|
||||
:::
|
||||
|
||||
## autoHeight
|
||||
|
||||
- 类型: `Setter/Getter`
|
||||
@@ -696,12 +702,6 @@ art.on('ready', () => {
|
||||
});
|
||||
```
|
||||
|
||||
:::tip 提示
|
||||
|
||||
删除区间循环播放,只需要设置 `loop` 为 `[]` 即可
|
||||
|
||||
:::
|
||||
|
||||
## destroy
|
||||
|
||||
- 类型: `Function`
|
||||
|
||||
Reference in new issue
Block a user