node.js是否有一个类似于无线电的好的音频流解决方案? [英] Is there a good radio-like audio streaming solution for node.js?

查看:124
本文介绍了node.js是否有一个类似于无线电的好的音频流解决方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找可以通过node.js流式传输音频(如连续播放(客户端可以连续播放,并且客户端可以加入歌曲的中间部分))的音频的方法.是否有任何node.js模块(我找不到)或可以与node.js一起使用的其他任何模块?使用node.js完全可以吗?如果没有,您建议使用其他什么方式? (尽管,我更喜欢node.js)我可以使用HTML5音频API,而且我也不在乎IE支持.

I'm looking for something to stream audio like radio (playing continuously and clients can join in the middle of a song) with node.js. Is there any node.js module (which I couldn't find)or anything else that I can use along with node.js to achieve this? Is this possible at all with node.js? If not, what do you recommend to use otherwise? (though, I prefer node.js) It's ok for me to use HTML5 Audio API and I don't care about IE support.

谢谢.

推荐答案

是的,这完全有可能.目前,我正在Node.js上托管互联网广播.

Yes, this is entirely possible. I am hosting internet radio on Node.js at the moment.

所有您需要做的就是从编码器中获取原始流数据,并通过HTTP将其发送到任何连接的客户端.客户端很擅长与流同步,因此您不必担心对齐帧或其他任何内容.

All you have to do is take the raw stream data from the encoder and send it via HTTP to any connected clients. The clients are good about synching up with the stream, so you don't have to worry about aligning to frames or anything.

这篇关于node.js是否有一个类似于无线电的好的音频流解决方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆