一:加密模块:
在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,
bool rtcp_mux_required,
bool srtp_required)
: worker_thread_(worker_thread),
network_thread_(network_threa
版权声明:本文为chinabinlang原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。