GithubHelp home page GithubHelp logo

s-mohan / smusic Goto Github PK

View Code? Open in Web Editor NEW
132.0 132.0 75.0 120 KB

html5音乐列表播放器

Home Page: https://smohan.net/lab/smusic

CSS 25.12% JavaScript 74.88%
audio css3 javascript music music-player smusic

smusic's People

Contributors

s-mohan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

smusic's Issues

问题

不能进行搜索想要的歌曲

bug反馈

一、
追加的音乐无法加载歌词。将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);
        };

发现bug,恶心

playByMode(type, callback, isInit)
这个方法里面,在列表播放的时候,居然出现如下错误:
第1首的下一首变成11,第2首的下一首变成21.。。。。
所以,你也知道是什么错了。这个好改。。。

现在我碰到的另外一个恶心问题,就是在列表播放mode下,播放完一首,概率出现不自动播放下一首的情况。

playIndex error

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];

Help

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.