Added error message for failing audio decodes

This commit is contained in:
Eduard Urbach 2019-03-30 18:35:12 +09:00
parent 4b54e4f2e8
commit af724c0d84

View File

@ -118,7 +118,14 @@ export default class AudioPlayer {
this.next()
}
}, console.error)
}, err => {
if(currentPlayId !== this.playId) {
return
}
this.arn.statusMessage.showError("Your browser can't decode this audio file.")
console.error(err)
})
}
request.onprogress = e => {