Coder Social home page Coder Social logo

Comments (5)

maomao1996 avatar maomao1996 commented on May 14, 2024

播放全部就是把当前列表的音乐替换掉正在播放列表里面的音乐,你获取音乐信息的时候可以在播放的时候再去获取,没必要一次性获取,获取到之后把这些信息缓存到 vuex 播放列表里面当前音乐的 data 里面,下次播放的时候先判断当前 data 有没有这些信息,没有再去请求接口,你这样一次获取下来你还要考虑其中某一两条获取失败的情况,还有插入顺序要一致这些等等,建议你还是播放前再去获取当前音乐的信息

from vue-mmplayer.

IsKaros avatar IsKaros commented on May 14, 2024

谢谢你,我明白了

from vue-mmplayer.

bao2333 avatar bao2333 commented on May 14, 2024

你好 我想问一下你的播放器进度条是怎样适配移动端的 我用了一下你写的进度条组件 好像还是按照pc版来的 可以帮我解释一下吗

from vue-mmplayer.

maomao1996 avatar maomao1996 commented on May 14, 2024

代码都差不多的,就是监听事件要加上移动端的 touch 事件,拖动距离改成 e.touches[0].pageX,其他的基本和 pc 的一样

from vue-mmplayer.

bao2333 avatar bao2333 commented on May 14, 2024

谢谢你 明白了

from vue-mmplayer.

Related Issues (20)

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.