Giter Site home page Giter Site logo

music-small's Introduction

扫码预览

一、需求分析

  • 基本功能

上一曲、下一曲、播放、暂停、列表播放

  • 切换到别的页面播放继续

  • 歌词同步

1、歌词随音乐进度更新 2、拖动歌词后出现可调节位置的控件,此时歌词滚动暂停 3、点击控件播放,关闭控件,改变进度 4、不点击,5s后关闭控件

  • 进度条播放

可点击或者拖动进度条来改变歌曲进度

  • 播放模式

单曲、列表、随机三种播放模式

  • 倍速

可在不同倍速下播放,并且不同倍速下歌词同步

其中的经验:

  • 1、wxs支持es4的语法
  • 2、在app.json中设置"requiredBackgroundModes": ["audio"],将开启后台播放
  • 3、wx.getBackgroundAudioManager()的onEnded监听在安卓机上面不生效
  • 4、不支持倍速

music-small's People

Contributors

myskey avatar

Watchers

James Cloos avatar

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.