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

引用本地音乐的时候控制台显示[Vue-APlayer] NotSupportedError: The element has no supported sources. #219

Open
Yuban32 opened this issue Jul 8, 2020 · 7 comments

Comments

@Yuban32
Copy link

Yuban32 commented Jul 8, 2020

这是Vue模板中的代码,我用本地的资源就会提示NotSupportedError,请问这是什么原因? 模板和音乐资源不在同一个目录里
@Yuban32
Copy link
Author

Yuban32 commented Jul 8, 2020

害 没事了 加require就行了XD
src:require("../assets/music/SnowSnowSnow.mp3")

@bestras023
Copy link

Hi @Mashiro10032 if add require, can the local music file be played? Please let me know. Thanks.

@Yuban32
Copy link
Author

Yuban32 commented Oct 8, 2021

Hi @Mashiro10032 if add require, can the local music file be played? Please let me know. Thanks.

yes, need to add require

@bestras023
Copy link

Thanks. I'm trying to play in-memory blob audio file now. Would you recommend the package name?

@Yuban32
Copy link
Author

Yuban32 commented Oct 8, 2021

Thanks. I'm trying to play in-memory blob audio file now. Would you recommend the package name?

sorry bro, I haven't used blob. XD

@bestras023
Copy link

what did you use, then?

@Yuban32
Copy link
Author

Yuban32 commented Oct 8, 2021

I play MP3 files

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

2 participants