DIYgod / APlayer

:lollipop: Wow, such a beautiful HTML5 music player
http://aplayer.js.org
MIT License
7.24k stars 1.02k forks source link

an audio error has occurred... #704

Open Jony6688 opened 3 years ago

Jony6688 commented 3 years ago

image

yduke commented 3 years ago

This is usually caused by a wrong or empty "audio url" definition.

Check the audio.url part of your "APlayer" construction,

audio: [{ ...... url: 'url.mp3', //check here ...... }]

Correct the url, may solve the problems.

I've been there too...

art3misssss commented 3 years ago

Close network proxy.

ain-soph commented 7 months ago

Add a possibility that I face.
It might be Permission issue.

I generate flac files using python scripts, and those files are not readable for alist agent.
When I try to play them in aplayer, it shows the same error message. However, they are playable using other audio players.
But After I set the permission as "777", it works.

To check if you are the same case, try to switch to "download" tab and see if you can download the audio file. If not, it might be this issue.

可能是音频文件权限问题导致的。我用python脚本生成了flac文件,但是alist没有读取权限。
用aplayer播放时也会出现和楼主相同的错误信息。但是我用windows的播放软件可以用ftp直接播放。
我把文件改成777权限后,alist就能正常播放了。

如果你想确认是不是跟我一样的情况,切到”下载“标签页看看你能不能下载音频文件就行。如果不能,很有可能就是权限问题。

mogenshixiong commented 5 months ago

url中不要出现中文