Comments (5)
+1
from vue-aplayer.
就是组件会检查music这个属性,检查失败了,所以报错。我的解决方式是:把初始的music对象需要的属性都写上,值设为非空字符串。如下:
music: {
title: ' ',
artist: ' ',
src: ' ',
pic: ' ',
}
from vue-aplayer.
+1
from vue-aplayer.
异步请求加载初始化music,报上面的错误,而且请求到数据后,封面都加载显示了,点击播放时NotSupportedError: The element has no supported sources.
from vue-aplayer.
<aplayer v-if="music.src" :music="music"/>
建议 保证 music 实例化后,再渲染 aplayer 组件。
from vue-aplayer.
Related Issues (20)
- 请问播放歌词时一直报key重复的错误是怎么回事?
- 自动播放失效
- 改变动态绑定数据时,音频会暂停重置 HOT 5
- 引用本地音乐的时候控制台显示[Vue-APlayer] NotSupportedError: The element has no supported sources. HOT 7
- Display currentTime stops music from playing
- 怎么集成这个插件进行二次开发
- How can i hide shuffle option?
- 没有安装 hls.js 会有一个警告错误 HOT 1
- 来个侧边抽屉
- 想对播放列表进行删除该怎么做
- 该组件能不能在vue3+ts环境下运行? HOT 1
- 动态更改音乐的src无效 HOT 3
- chrome 中播放m3u8 无效
- ReferenceError: document is not defined HOT 1
- Dependency Dashboard
- lrc文件url,乱码 HOT 1
- 切换路由,改变变量导致播放停止重置,找到解决办法了 HOT 1
- 谷歌浏览器文件读取不到size
- 怎么把歌词(.lrc)文件引入进来
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-aplayer.