Merge pull request #206 from sabrinaluo/master

Fix typo in readme
This commit is contained in:
Micooz Lee
2018-03-29 21:54:13 +08:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+2 -2
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.
+1 -1
View File
@@ -221,7 +221,7 @@ const ap = new APlayer({
+ `ap.list.clear()`: 清空播放列表
+ `ap.audio`: 原生 video
+ `ap.audio`: 原生 audio
+ `ap.audio.currentTime`: 返回音频当前播放时间