From af724c0d840059dbdb5c0e2f464517525fc24e1b Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sat, 30 Mar 2019 18:35:12 +0900 Subject: [PATCH] Added error message for failing audio decodes --- scripts/AudioPlayer.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/AudioPlayer.ts b/scripts/AudioPlayer.ts index c223dd4b..c7f085c6 100644 --- a/scripts/AudioPlayer.ts +++ b/scripts/AudioPlayer.ts @@ -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 => {