vue-aplayer icon indicating copy to clipboard operation
vue-aplayer copied to clipboard

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

Open Yuban32 opened this issue 4 years ago • 7 comments

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

Yuban32 avatar Jul 08 '20 07:07 Yuban32

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

Yuban32 avatar Jul 08 '20 07:07 Yuban32

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

bestras023 avatar Oct 08 '21 11:10 bestras023

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

yes, need to add require

Yuban32 avatar Oct 08 '21 12:10 Yuban32

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

bestras023 avatar Oct 08 '21 12:10 bestras023

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

Yuban32 avatar Oct 08 '21 12:10 Yuban32

what did you use, then?

bestras023 avatar Oct 08 '21 12:10 bestras023

I play MP3 files

Yuban32 avatar Oct 08 '21 12:10 Yuban32