s-mohan / smusic Goto Github PK
View Code? Open in Web Editor NEWhtml5音乐列表播放器
Home Page: https://smohan.net/lab/smusic
html5音乐列表播放器
Home Page: https://smohan.net/lab/smusic
不能进行搜索想要的歌曲
一、
追加的音乐无法加载歌词。将smusic.js 746行的 | 改为 ||
二、
当为暂停状态时,点击列表的歌曲播放后暂停按钮状态没有改变。在__playMusic里增加
const BTN = DOM.btn.play; utils.removeClass(BTN, 'smusic-music-pause'); utils.addClass(BTN, 'smusic-music-play'); BTN.setAttribute('title', '暂停');
三、
上一首按钮错误,将smusic.js 774行的next改为prev
版本:v2.1.0
文件:src/js/smusic.js
行号: 774
描述:上一首事件的type错写成next了
/**
* 上一首
* @param callback
*/
prev(callback) {
this.playByMode('next', callback);
};
playByMode(type, callback, isInit)
这个方法里面,在列表播放的时候,居然出现如下错误:
第1首的下一首变成11,第2首的下一首变成21.。。。。
所以,你也知道是什么错了。这个好改。。。
现在我碰到的另外一个恶心问题,就是在列表播放mode下,播放完一首,概率出现不自动播放下一首的情况。
使用vue-cli构建,跳转页面,歌曲还在播放,不知道怎么解决。。。求指导
Execute smusic.next() on console, the playIndex 38 gets 381
Should fix in playByMode(type, callback, isInit)
const [playMode, playIndex, songLength] = [Number(this.playMode), Number(this.playIndex), this.playList.length];
Hello friend.
Great plugins for playing music.
I have tried your plugins but I have a problem, could you please help me how to fix it.
I have this security error in my browser console for autoplaying option as shown below:
Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD
Many Thanks, friend
能不能增加单句复读功能?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.