WebRTC 保存视频和音频 [英] WebRTC save video and audio

查看:71
本文介绍了WebRTC 保存视频和音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将录制的视频和音频保存到服务器.但是我不想在客户端对视频和音频进行编码,我想在服务器端对它们进行编码.如何将视频和音频发送到服务器?我直播吗?

I want to save recorded video and audio to a server. But I don't want to encode the video and audio on the client side, I want to encode them on the server side. How can I send the video and audio to the server? Do I stream it?

推荐答案

您可以通过 websocket 将音频和视频发送到 WebSocket 服务器,然后该服务器可以按照您想要的方式处理数据包.目前有记录器,我已经修改了一些记录器,专注于通过 websockets 发送,而不是下载文件.

You can send the audio and video over websockets to a WebSocket server that can then handle the packets the way you want. There are recorders out there currently and I have modified some to focus on sending over websockets, not downloading the files.

Repo 链接.

这篇关于WebRTC 保存视频和音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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