class RTCPassthroughTransformer : public FrameTransformerInterface {
public:
cricket::MediaType m_mediaType;
RTCPassthroughTransformer(cricket::MediaType mediaType)
{
m_mediaType = mediaType;
}
void Transform(std::unique_ptr<TransformableFrameInterface> transformable_frame)
{
rtc::ArrayView<const uint8_t> transformableFrameData = transformable_frame->GetData();
transformable_frame->SetData(transformableFrameData);
}
};
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/f8c9d241-bda7-4afd-bf41-1f215d379bfa%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CADxkKiL%3DOKviEFbTb9b0JT2mbxDEDEfrEoBfd3K4hQ%3DtbP9dFw%40mail.gmail.com.
According to Standard WebRTC API
Including lib-jitsi-meet.js from Jitsi-Meet
They're using the following API
RTCPeerConnection
RTCRtpSender
RTCRtpReceiver
So,
Encrypt frames could be here in RTCRtpSender.
Decrypt frames could be here in RTCRtpReceiver.
third_party\blink\renderer\modules\peerconnection
rtc_rtp_receiver.cc
rtc_rtp_receiver.h
rtc_rtp_sender.cc
rtc_rtp_sender.h
rtc_rtp_transceiver.cc
rtc_rtp_transceiver.h
Now I tried to add my custom frame encryptor and decryptor to the corresponding webrtc's sender and corresponding webrtc's receiver. I am adding the code inside rtc_rtp_sender.cc something like below: