remove autoHeight option

This commit is contained in:
Harvey committed 2021-12-31 17:56:43 +08:00
1 parent a74c6194be
commit 8404a8c5cd
19 files changed
+61 -78

No files matched your search

@@ -199,23 +199,6 @@ var art = new Artplayer({
});
```
## autoHeight
- Type: `Boolean`
- Default: `false`
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',
autoHeight: true,
});
```
## autoMini
- Type: `Boolean`
@@ -652,6 +652,28 @@ 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`
@@ -199,23 +199,6 @@ 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`
@@ -674,6 +674,28 @@ art.on('ready', () => {
})
```
## autoHeight
- 类型: `Setter/Getter`
- 参数: `Boolean`
当容器只有宽度,但你希望容器高度能自适应播放器的长宽比
<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);
});
```
:::tip 提示
删除区间循环播放,只需要设置 `loop` 为 `[]` 即可