一:加密模块:
在webrtc中,通过开源的libSRTP进行RTP的数据加密;
webrtc为了方便,进行的封装;
实现了加密,解密;
src\pc\srtpsession.h;
// Class that wraps a libSRTP session.
class SrtpSession
SrtpTransport::SendRtpPacket
二:加密逻辑:
BaseChannel::BaseChannel(rtc::Thread* worker_thread,
rtc::Thread* network_thread,
rtc::Thread* signaling_thread,
std::unique_ptr<MediaChannel> media_channel,
const std::string& content_name,
本文详细介绍了WebRTC中如何使用libSRTP进行RTP数据加密,包括SrtpSession类的封装以及BaseChannel类中启用SRTP和DTLS-SRTP的逻辑,阐述了设置加密传输的过程。
订阅专栏 解锁全文

324

被折叠的 条评论
为什么被折叠?



