Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

播放.m4a后缀url出错 #1

Open
fraserxu opened this issue Aug 3, 2013 · 2 comments
Open

播放.m4a后缀url出错 #1

fraserxu opened this issue Aug 3, 2013 · 2 comments

Comments

@fraserxu
Copy link
Contributor

fraserxu commented Aug 3, 2013

我在本地尝试使用player播放格式为" http://cc.cdn.jing.fm/201308031031/63f81a99de31ab3766705482b370b403/2012/0713/06/hv/2012071306hvw.m4a " 的url时出现如下错误:

[../deps/mpg123/src/libmpg123/parse.c:1078] error: Giving up searching valid MPEG header after 65536 bytes of junk.
[../deps/mpg123/src/libmpg123/parse.c:1078] error: Giving up searching valid MPEG header after 65536 bytes of junk.
[../deps/mpg123/src/libmpg123/parse.c:1078] error: Giving up searching valid MPEG header after 65536 bytes of junk.

测试mp3格式没有问题。请问有办法支持.m4a格式么?

@guo-yu
Copy link
Owner

guo-yu commented Aug 4, 2013

hi ~ 原来是jingfm cli的作者~
正在添加这个功能~

@fraserxu
Copy link
Contributor Author

fraserxu commented Aug 4, 2013

关注中。哈哈。

之前我在做这个的时候也考虑过很多音频播放解决方案。 包括使用mac原生的afplay,但是只能支持本地音频,不支持远程url;后来就找到了mplayer,功能很强大,支持播放列表,但是感觉始终有点太重,不是好的解决方案。

当时也发现了这个 repo,可是貌似只支持mp3,暂时就只好用mplayer.

Node的stream是个很强大的东西,还在学习中!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants