mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-15 20:58:01 +00:00
fix(player): Skip track when audio source not supported (#2033)
This commit is contained in:
parent
b7f7ac8d31
commit
221ca63d3d
1 changed files with 4 additions and 0 deletions
|
|
@ -338,6 +338,10 @@ export default class {
|
|||
// code 3: MEDIA_ERR_DECODE
|
||||
if (errCode === 3) {
|
||||
this._playNextTrack(this._isPersonalFM);
|
||||
} else if (errCode === 4) {
|
||||
// code 4: MEDIA_ERR_SRC_NOT_SUPPORTED
|
||||
store.dispatch('showToast', `无法播放: 不支持的音频格式`);
|
||||
this._playNextTrack(this._isPersonalFM);
|
||||
} else {
|
||||
const t = this.progress;
|
||||
this._replaceCurrentTrackAudio(this.currentTrack, false, false).then(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue