Giter Club home page Giter Club logo

Comments (2)

hustKiwi avatar hustKiwi commented on September 16, 2024

@chenwfy 网站做的不错:)

  1. 确实如你所说,在网络情况比较差时,取得的是duration取得的是buffer时长,具体源码见:https://github.com/Baidu-Music-FE/muplayer/blob/master/src/js/core/engines/audioCore.coffee#L245
    这个还真没法在前端解决。如果你后端存储曲库时计算了歌曲的总时长,可以尝试覆盖掉这个方法:
    https://github.com/Baidu-Music-FE/muplayer/blob/master/src/js/core/engines/engine.coffee#L212
    直接返回从后端计算后的时长结果。
  2. 这个在我们之前的环境中还没有碰到。而且 MuPlayer 是做了一定的卡断后的异常处理和重试的:https://github.com/Baidu-Music-FE/muplayer/blob/master/src/js/player.coffee#L170 , 感觉你说的不能play是因为数据还没有缓冲到可以play的程度?

另外非常抱歉,虽然我是 MuPlayer 的主要开发者,但已在今年6月时离开百度音乐了。这个项目后续负责的经理好像不太希望持续维护开源的版本,因此github上的这个项目实际已经处于无人接手的停滞状态了。

如果你要开发的是一个非常重要的长期项目,要么了解一下 MuPlayer ,可以一同维护更新。要么推荐评估使用一下 SoundManager2,虽然它的更新也不是那么频繁,但毕竟是用户数众多,还有一定积累。

from muplayer.

chenwfy avatar chenwfy commented on September 16, 2024

@hustKiwi
非常感谢你的回复和建议。。^_^

from muplayer.

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.