Resume audio player íf it was paused before

This commit is contained in:
Eduard Urbach 2018-04-05 07:54:28 +02:00
parent a5757093ad
commit 5e3cc06643

View File

@ -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)