feat: updates

This commit is contained in:
qier222 2022-03-24 14:23:04 +08:00
parent 3b9d728410
commit 46349e8314
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
10 changed files with 117 additions and 39 deletions

View file

@ -178,7 +178,9 @@ export class Player {
_howler = howler
this.play()
this.state = State.PLAYING
_howler.once('load', () => this._cacheAudio(this.trackID, audio))
const id = this.trackID
_howler.once('load', () => this._cacheAudio(id, audio))
if (!this._progressInterval) {
this._setupProgressInterval()