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

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

问题描述

我正在寻找使用 node.js 流式传输音频的东西,例如广播(连续播放,客户可以在歌曲中间加入).是否有任何 node.js 模块(我找不到)或其他任何可以与 node.js 一起使用的模块来实现这一目标?这对 node.js 来说可能吗?如果没有,您建议使用什么?(不过,我更喜欢 node.js)我可以使用 HTML5 Audio 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天全站免登陆