This commit is contained in:
Sabrina Luo 2018-03-29 21:49:46 +08:00
parent c5c6bfd001
commit 49e8743da9
2 changed files with 3 additions and 3 deletions

View File

@ -240,7 +240,7 @@ ap.on('ended', function () {
});
```
Video events
Audio events
- abort
- canplay
@ -578,4 +578,4 @@ ap.on('listswitch', (data) => {
### Why can't player autoplay in some mobile browsers?
Most mobile browsers forbid video autoplay, you wont be able to achieve it without hacks.
Most mobile browsers forbid audio autoplay, you wont be able to achieve it without hacks.

View File

@ -221,7 +221,7 @@ const ap = new APlayer({
+ `ap.list.clear()`: 清空播放列表
+ `ap.audio`: 原生 video
+ `ap.audio`: 原生 audio
+ `ap.audio.currentTime`: 返回音频当前播放时间