mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 06:59:24 +02:00
Fixed #46: better handling of HTTP errors when fetching audio file
This commit is contained in:
parent
a4e31cdb9d
commit
13eddbfc21
3 changed files with 12 additions and 3 deletions
|
@ -140,7 +140,6 @@ class Queue {
|
|||
} else {
|
||||
index = index || this.tracks.length
|
||||
}
|
||||
console.log('INDEEEEEX', index)
|
||||
tracks.forEach((t) => {
|
||||
self.append(t, index, true)
|
||||
index += 1
|
||||
|
@ -243,7 +242,11 @@ class Queue {
|
|||
rate: 1,
|
||||
loop: false,
|
||||
volume: this.state.volume,
|
||||
onEnded: this.handleAudioEnded.bind(this)
|
||||
onEnded: this.handleAudioEnded.bind(this),
|
||||
onError: function (src) {
|
||||
self.errored = true
|
||||
self.next()
|
||||
}
|
||||
})
|
||||
this.audio = audio
|
||||
audio.updateHook('playState', function (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue