Comments (3)
@OneKissAndOneShot player.toggle()
可以控制播放器播放/暂停,player.isPlaying
是播放器当前的状态。你可以不用自己去判断该调 play()
还是 pause()
,直接通过 isPlaying
来显示不同的按钮,点击的时候调 toggle()
就可以了。
如果不太明白的话,不妨贴一些你的代码?
from vue-aplayer.
我先试试看
from vue-aplayer.
@OneKissAndOneShot 使用方面的问题你可以加入 Discord 来讨论
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
- 怎么集成这个插件进行二次开发
- 单音频异步请求,报错,但是音频能播放,Invalid prop: custom validator check failed for prop "music". HOT 5
- 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.