Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

播放纯音乐时碰到错误 (歌词解析) #26

Open
a632079 opened this issue Feb 20, 2018 · 5 comments
Open

播放纯音乐时碰到错误 (歌词解析) #26

a632079 opened this issue Feb 20, 2018 · 5 comments
Assignees

Comments

@a632079
Copy link

a632079 commented Feb 20, 2018

错误信息 (Firefox 58):

TypeError: n is undefined                                      at view.ts:360:32

(Chrome 65)

view.ts:361 Uncaught TypeError: Cannot read property 'time' of undefined
    at t.value (view.ts:361)
    at t.r.handleOpenAudio (view.ts:393)
    at t.n.emit (events.js:81)
    at t.value (index.ts:160)
    at t.value (index.ts:214)
    at t.r.handleClickPlayList (view.ts:377)
    at HTMLLIElement.<anonymous> (view.ts:312)

URL: https://cdn.a632079.me/163cplayer.html?playlist=28391863,22640061,32317208,28891491,477839635,427610054,463722628,436668247,5307982,394912,394911,857896,347230,115502,28949444,109558,185879&autoplay=true
使用接口: https://api.a632079.me/nm/summary/28391863,22640061,32317208,28891491,477839635,427610054,463722628,436668247,5307982,394912,394911,857896,347230,115502,28949444,109558,185879?lyric=true
无歌词的歌曲,我是这样定义的(似乎没毛病):

{
base : "[00:00.00]纯音乐,敬请聆听。\n"
}

根据初步调试,感觉可能和歌词有关。希望大大能够给个提示。

@a632079
Copy link
Author

a632079 commented Feb 20, 2018

@Copay
已经找到问题解决方案

  • 原因: 歌词解析需要两个以上的时间
    • 错误: [00.00.000] 01\n
    • 成功: [00.00.000] 01\n[00.01.000]02
      建议在相关函数内添加检测.....

@Copay
Copy link
Member

Copay commented Feb 22, 2018

纯音乐不要加歌词!

@a632079
Copy link
Author

a632079 commented Feb 22, 2018 via email

@EYHN
Copy link
Member

EYHN commented Feb 25, 2018

为什么我没法复现呢

@a632079
Copy link
Author

a632079 commented Mar 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants