metowolf / MetingJS

:cake: A powerful plugin connect APlayer and Meting
https://i-meto.com/about/
MIT License
1.17k stars 158 forks source link

無法正常顯示圖片 #2

Closed maple3142 closed 6 years ago

maple3142 commented 6 years ago

example 專輯圖片顯示不出來 需要把"pic"的url在瀏覽器上做一次GET request才能顯示 https://codepen.io/anon/pen/gooRxG?editors=1000

metowolf commented 6 years ago

我这里没能重现这个问题,建议贴出控制台报错/警告信息

maple3142 commented 6 years ago

有來自 aplayer 的錯誤

fly3949 commented 6 years ago

经测试 Firefox 57.0.4 下可以正常加载图片,不过的确是有报错: TypeError: t.lrcContents.getElementsByTagName(...)[0] is undefined 可以说下浏览器版本吗

metowolf commented 6 years ago

我在 windows、macOS 平台下的 Chrome、FireFox 均做过测试,均没能复现这个问题。 建议使用其它浏览器或网络环境再测试一下 😀

或者贴一下图片地址以及 p3.music.126.net 的 IP 地址

Genteure commented 6 years ago

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 图片显示完全正常

倒是歌词有地方有问题 :new_moon_with_face:

Uncaught TypeError: Cannot read property 'classList' of undefined
    at XMLHttpRequest.l.onreadystatechange (APlayer.js:680)
l.onreadystatechange @ APlayer.js:680
XMLHttpRequest.send (async)
(anonymous) @ VM181:1
value @ APlayer.js:688
(anonymous) @ APlayer.js:259

L680: this.lrcContents.getElementsByTagName('p')[0].classList.add('aplayer-lrc-current');
maple3142 commented 6 years ago

版本是firefox 58.0b14