mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
Song now properly skips when error
This commit is contained in:
parent
5532364518
commit
5b496915a6
1 changed files with 1 additions and 4 deletions
|
@ -39,13 +39,10 @@ export default {
|
|||
|
||||
/**
|
||||
* Listen to 'error' event on the audio player and play the next song if any.
|
||||
* We don't care about network error capturing here, since every play() call
|
||||
* comes with a POST to api/interaction/play. If the user is not logged in anymore,
|
||||
* this call will result in a 401, following by a redirection to our login page.
|
||||
*/
|
||||
this.player.media.addEventListener('error', e => {
|
||||
this.playNext();
|
||||
});
|
||||
}, true);
|
||||
|
||||
/**
|
||||
* Listen to 'input' event on the volume range control.
|
||||
|
|
Loading…
Reference in a new issue