[英]Stream system audio to web browser (javascript) over network
I'm searching if is possible to bring up an environment made by 1 PC and 1 smartphone:我正在寻找是否可以调出由 1 台 PC 和 1 部智能手机构成的环境:
Is possible to stream PC1'system audio on the smartphone's WebBrowser?是否可以在智能手机的 WebBrowser 上流式传输 PC1 的系统音频? Anyone can explain me how?任何人都可以解释我如何? Both in server-side (Linux/Jackd) and in client-side (Javascript on WebBrowser with Audio API)在服务器端(Linux/Jackd)和客户端(带有音频 API 的 WebBrowser 上的 Javascript)
Regards问候
Ok, so you have a pc with jack and nodejs as http server.好的,所以你有一台带有 jack 和 nodejs 作为 http 服务器的电脑。
What you need to do is to install ffmpeg, and follow this instructions: https://www.ffmpeg.org/ffmpeg-devices.html#jack您需要做的是安装 ffmpeg,并按照以下说明操作: https : //www.ffmpeg.org/ffmpeg-devices.html#jack
You will use ffmpeg within nodejs to stream the output to the browser.您将在 nodejs 中使用 ffmpeg 将输出流式传输到浏览器。
There are several questions about streaming videos and audio with nodejs.关于使用 nodejs 流式传输视频和音频有几个问题。 You can simply serve a progressive http stream and the browser will play it.您可以简单地提供渐进式 http 流,浏览器将播放它。
In the end you will not use web-audio api, sockets or WebRTC最后你不会使用 web-audio api、sockets 或 WebRTC
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.