简体   繁体   English

WebRTC远程音频录制解决方案

[英]WebRTC remote audio recording solution

I am working on video-conferencing with WebRTC (javascript/php). 我正在使用WebRTC (javascript / php)进行视频会议 I want to record whole screen ie all videos in single video and store it on server. 我想记录整个屏幕,即单个视频中的所有视频,并将其存储在服务器上。 I am able to record single video at a time but not all videos at a time(whole screen). 我可以一次录制单个视频,但一次不能录制全部视频(整个屏幕)。 Can I achieve it? 我能做到吗?

And one big issue is Remote Audio recording ! 其中一个大问题是远程录音 Is there any solution to record remote audio?? 有录制远程音频的解决方案吗?

I have taken the code from here . 我从这里获取了代码。

I do not think php is going to make a difference here, I can see only two ways. 我认为php不会在这里有所作为,我只能看到两种方法。

The Easy Way: 简单方法:

Use an MCU for recording( even as an alternative for mesh network for conferences). 使用MCU进行录制(甚至可以替代会议的网状网络)。 You can try Kurento , Licode or Intel CS . 您可以尝试KurentoLicodeIntel CS

The Hard Way : 艰难的道路

if firefox browser: use MediaRecorder api to record each remote stream, send them to server and merge them together( may be with ffmpeg) and provide a link to user to see/download... 如果是firefox浏览器:使用MediaRecorder api记录每个远程流,将它们发送到服务器并将它们合并在一起(可能与ffmpeg结合在一起),并提供指向用户查看/下载的链接...

if chrome browser: you can record through each remote video stream canvas( what happens in RecordRTC internally), simultaneously request the remote peers to record their own audio on their side, upload them all to the server and provide link... yeah, good luck with syncing them all. 如果是chrome浏览器:您可以通过每个远程视频流画布进行RecordRTC内部RecordRTC会发生什么),同时请求远程对等方录制自己的音频,将它们全部上传到服务器并提供链接...是的,很好同步所有这些。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM