mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-22 12:47:27 +08:00
parent
75fed70c38
commit
4b22651a07
|
@ -308,6 +308,9 @@ export default class {
|
||||||
src: [source],
|
src: [source],
|
||||||
html5: true,
|
html5: true,
|
||||||
format: ['mp3', 'flac'],
|
format: ['mp3', 'flac'],
|
||||||
|
onend: () => {
|
||||||
|
this._nextTrackCallback();
|
||||||
|
},
|
||||||
});
|
});
|
||||||
if (autoplay) {
|
if (autoplay) {
|
||||||
this.play();
|
this.play();
|
||||||
|
@ -317,9 +320,6 @@ export default class {
|
||||||
setTrayLikeState(store.state.liked.songs.includes(this.currentTrack.id));
|
setTrayLikeState(store.state.liked.songs.includes(this.currentTrack.id));
|
||||||
}
|
}
|
||||||
this.setOutputDevice();
|
this.setOutputDevice();
|
||||||
this._howler.once('end', () => {
|
|
||||||
this._nextTrackCallback();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
_getAudioSourceFromCache(id) {
|
_getAudioSourceFromCache(id) {
|
||||||
return getTrackSource(id).then(t => {
|
return getTrackSource(id).then(t => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user