Comments (2)
@chenwfy 网站做的不错:)
- 确实如你所说,在网络情况比较差时,取得的是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
直接返回从后端计算后的时长结果。 - 这个在我们之前的环境中还没有碰到。而且
MuPlayer
是做了一定的卡断后的异常处理和重试的:https://github.com/Baidu-Music-FE/muplayer/blob/master/src/js/player.coffee#L170 , 感觉你说的不能play是因为数据还没有缓冲到可以play的程度?
另外非常抱歉,虽然我是 MuPlayer
的主要开发者,但已在今年6月时离开百度音乐了。这个项目后续负责的经理好像不太希望持续维护开源的版本,因此github上的这个项目实际已经处于无人接手的停滞状态了。
如果你要开发的是一个非常重要的长期项目,要么了解一下 MuPlayer
,可以一同维护更新。要么推荐评估使用一下 SoundManager2,虽然它的更新也不是那么频繁,但毕竟是用户数众多,还有一定积累。
from muplayer.
@hustKiwi
非常感谢你的回复和建议。。^_^
from muplayer.
Related Issues (20)
- list播放模式下,列表播完需派发对应事件
- 建议给组件添加destroy API和ID3解析 API HOT 4
- 未装flash内核且audio不支持情况下的处理
- 你好,我想问问,你们的ID3插件什么时候能完成呢?
- flac音频解码 HOT 1
- 有个问题,关于是否来自缓存 HOT 1
- MuPlayer支持IE8浏览器吗? HOT 3
- 如何判断音乐文件加载完成? HOT 1
- nobone 1.5.5的renderer.static报错 HOT 2
- IE下不能播放WAV格式文件 HOT 1
- 怎么播放Java的Stream流? HOT 1
- Bower.json 内应包含 main 栏位
- 有没有具体如何安装教程,东边要安装一个,西边要安装什么。百度这么大,要是我,用到那个就把他买下来,直到买不起。 HOT 8
- HTML5不支持mp4(audio)/m4a 有点遗憾 望支持 HOT 1
- 这是MuPlayer的Bug么?很急 HOT 2
- 切换歌曲
- 使用官网demo遇到问题
- UC播放无时间进度
- 跨域的问题怎么解决 ,用这个内核不能播放外网的音乐啊
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from muplayer.