SevenOutman / vue-aplayer

:cake: Easy-to-use music player for Vue 2.x

Home Page:https://vue-aplayer.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Yuban32 opened this issue · comments

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

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

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

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

yes, need to add require

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

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

what did you use, then?

I play MP3 files