diff --git a/packages/artplayer-document/docs/en/Properties.md b/packages/artplayer-document/docs/en/Properties.md index ccce4af59..93d17787d 100644 --- a/packages/artplayer-document/docs/en/Properties.md +++ b/packages/artplayer-document/docs/en/Properties.md @@ -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. - -
▶ Run Code
- -```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. + +
▶ Run Code
+ +```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` diff --git a/packages/artplayer-document/docs/zh-cn/Properties.md b/packages/artplayer-document/docs/zh-cn/Properties.md index 75b153dd3..3b66279aa 100644 --- a/packages/artplayer-document/docs/zh-cn/Properties.md +++ b/packages/artplayer-document/docs/zh-cn/Properties.md @@ -674,6 +674,12 @@ art.on('ready', () => { }) ``` +:::tip 提示 + +删除区间循环播放,只需要设置 `loop` 为 `[]` 即可 + +::: + ## autoHeight - 类型: `Setter/Getter` @@ -696,12 +702,6 @@ art.on('ready', () => { }); ``` -:::tip 提示 - -删除区间循环播放,只需要设置 `loop` 为 `[]` 即可 - -::: - ## destroy - 类型: `Function`