Comments (5)
确实如此,唯有VueAPlayer.default
才能正常加载。希望作者能更新一下文档。
vue player非常棒
from vue-aplayer.
不知道为什么,我使用:
Vue.use(APlayer, {
defaultCover: 'https://github.com/u3u.png',
productionTip: false,
});
创建倒是成功了,但是会一直报错:
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
而且使用原生的API也会提示我的{media}没有定义,例如:
const { media } = this.$refs.aplayer;
console.log(media.currentTime); // 获取音频当前播放时间
console.log(media.duration); // 获取音频总时间
console.log(media.paused); // 获取音频是否暂停
希望能请作者完善一下这个,很好的作品。
上面两位老哥能否详细说明一下这个VueAPlayer.default
是如何操作。
小白不胜感激。
@vvni @zhangyc310
from vue-aplayer.
我确定的是2.x版本需要这样注册组件,1.x不确定,没这样用过。
Vue.use(VueAPlayer.default, { defaultCover: '', productionTip: true });
求问怎么写
from vue-aplayer.
确实如此,唯有
VueAPlayer.default
才能正常加载。希望作者能更新一下文档。 vue player非常棒
求问怎么写
from vue-aplayer.
不知道为什么,我使用:
Vue.use(APlayer, { defaultCover: 'https://github.com/u3u.png', productionTip: false, });
创建倒是成功了,但是会一直报错: [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. 而且使用原生的API也会提示我的{media}没有定义,例如:
const { media } = this.$refs.aplayer; console.log(media.currentTime); // 获取音频当前播放时间 console.log(media.duration); // 获取音频总时间 console.log(media.paused); // 获取音频是否暂停
希望能请作者完善一下这个,很好的作品。
上面两位老哥能否详细说明一下这个
VueAPlayer.default
是如何操作。 小白不胜感激。 @vvni @zhangyc310
解决可吗
from vue-aplayer.
Related Issues (20)
- 在mounted中 调用switch函数无法指定歌曲
- Nuxt SSR 模式下使用报错
- 单文件组件的方法安装,无法调用api
- play()方法以后立即执行pause()
- 报错Invalid attempt to spread non-iterable instance
- 在vuepress中使用该插件,build的时候出现错误
- 建议:关于APlayer相关接口类型检查报错
- the operation is not supported
- Duplicate keys detected: '0'. This may cause an update error HOT 1
- TS2702: 'APlayer' only refers to a type, but is being used as a namespace here HOT 1
- 吸底模式的列表文字没有右对齐 HOT 1
- 普通模式播放列表怎么向上展开 HOT 1
- 能否嵌入到小程序里面
- 你好,播放器保存用户的使用习惯可以关闭掉吗?
- The play() request was interrupted by a call to pause()
- 大佬大佬, 啥时候抽空适配一下vue3呀
- 大佬,这个项目还更新不?
- 为啥不能关闭自动播放
- 有vue3版本的吗
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.