mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 08:51:20 -08:00
update docs
This commit is contained in:
1 parent
9e3389f8c0
commit
3775f5972b
49 files changed
+135
-194
No files matched your search
@@ -583,29 +583,6 @@ art.on('ready', () => {
|
||||
});
|
||||
```
|
||||
|
||||
## rotate
|
||||
|
||||
- Type: `Setter/Getter`
|
||||
- Parameter: `Number`
|
||||
|
||||
Set and get player rotation, support `-270`, `-180`, `-90`, `0`, `90`, `180`, `270`
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
```js
|
||||
var art = new Artplayer({
|
||||
container: '.artplayer-app',
|
||||
url: '/assets/sample/video.mp4',
|
||||
autoSize: true,
|
||||
});
|
||||
|
||||
art.on('ready', () => {
|
||||
console.info(art.rotate);
|
||||
art.rotate = 90;
|
||||
console.info(art.rotate);
|
||||
});
|
||||
```
|
||||
|
||||
## playbackRate
|
||||
|
||||
- Type: `Setter/Getter`
|
||||
|
||||
@@ -583,29 +583,6 @@ art.on('ready', () => {
|
||||
});
|
||||
```
|
||||
|
||||
## rotate
|
||||
|
||||
- 类型: `Setter/Getter`
|
||||
- 参数: `Number`
|
||||
|
||||
设置和获取播放器旋转,支持 `-270`、`-180`、`-90`、`0`、`90`、`180`、`270`
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
```js
|
||||
var art = new Artplayer({
|
||||
container: '.artplayer-app',
|
||||
url: '/assets/sample/video.mp4',
|
||||
autoSize: true,
|
||||
});
|
||||
|
||||
art.on('ready', () => {
|
||||
console.info(art.rotate);
|
||||
art.rotate = 90;
|
||||
console.info(art.rotate);
|
||||
});
|
||||
```
|
||||
|
||||
## playbackRate
|
||||
|
||||
- 类型: `Setter/Getter`
|
||||
|
||||
@@ -20,7 +20,6 @@ export default function flipMix(art) {
|
||||
if (flip === 'normal') {
|
||||
delete $player.dataset.flip;
|
||||
} else {
|
||||
art.rotate = false;
|
||||
$player.dataset.flip = flip;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
.art-fullscreen-rotate {
|
||||
position: fixed;
|
||||
z-index: 9999;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: #000;
|
||||
}
|
||||
@@ -14,7 +14,6 @@
|
||||
@import './hideCursor.less';
|
||||
@import './aspectRatio.less';
|
||||
@import './fullscreenWeb.less';
|
||||
@import './fullscreenRotate.less';
|
||||
@import './mini.less';
|
||||
@import './autoSize.less';
|
||||
@import './flip.less';
|
||||
|
||||
Reference in new issue
Block a user