如何使用TURN在服务器上记录中继流 [英] How to record a relayed stream on server using TURN

查看:318
本文介绍了如何使用TURN在服务器上记录中继流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这就是故事,我正在构建一个WebRTC应用程序,并且必须将流记录在服务器上.

So here's the story, I'm building a WebRTC app and I have to record the stream on server.

"WebRTC是p2p老兄,请选择媒体服务器"

"WebRTC is p2p dude, choose a media server"

是的,我知道,请避免发表此评论;)

Yes, I know, please avoid this comment ;)

但是随后我强调了一件事,如果我强制所有流使用TURN服务器该怎么办.数据包正在通过服务器,所以我想我可以把它们保存起来

But then I tought about one thing, what if I force all the stream to use the TURN server. The packets are going through the server, so I guess I can take them and save it

问题是如何做到这一点.

The question is how to do this.

有什么建议吗?

推荐答案

TURN服务器旨在作为中继媒体,这意味着不会对媒体流进行解密,混合,处理或记录.我知道您是在要求避免选择媒体服务器"的注释,但这就像说我需要插入此螺丝;我应该使用哪个锤子?请不要告诉我要起子. "-锤子不是正确的工具.

TURN servers are intended to be relayed media, which means that media streams are not decrypted, mux'ed, processed, or recorded. I get that you're asking to avoid the "choose a media server" comment, but that's like saying "I need put in this screw; which hammer should I use? Please don't tell me to get a screwdriver." - The hammer isn't the right tool.

您仍然可以使用WebRTC和p2p,但是媒体服务器(例如Jitsi)在星型拓扑中充当对等方,在该拓扑中,所有流都发送到媒体服务器,并且可以进行记录,中继,捆绑,等

You can still use WebRTC and p2p, but the media server (like Jitsi, for example) acts as a peer in a star topology, where all streams are sent to the media server, and can be recorded, relayed, bundled, etc.

这篇关于如何使用TURN在服务器上记录中继流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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