Resume audio player íf it was paused before
This commit is contained in:
parent
a5757093ad
commit
5e3cc06643
@ -113,6 +113,11 @@ export default class AudioPlayer {
|
||||
this.lastRequest = request
|
||||
request.send()
|
||||
|
||||
// Resume audio context if it was paused before
|
||||
if(this.audioContext.state === "suspended") {
|
||||
this.audioContext.resume()
|
||||
}
|
||||
|
||||
// Update track info
|
||||
this.updateTrackInfo(trackId)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user