mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 01:21:20 -08:00
remove autoHeight option
This commit is contained in:
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`
|
||||
|
||||
Reference in new issue
Block a user