Attempting to implement an SFU, where all the WebRTC peers upload their unencrypted media streams to our customized server; so that they can be distributed to other peers in a loop without any decryption / re-encryption worries.
This is because, Haven't found any source code to decrypt.
For that, I tried to generate an offer at JS side using createOffer() and before feeding it to setLocalDescription(), I removed the "a=fingerprint:sha-256 xx:YY..." from it. However, it gives an error:
DOMException: Failed to execute
'setLocalDescription'on'RTCPeerConnection': Failed to set local offer sdp: Called with SDP without DTLS fingerprint.
There is an interface available called RTCDtlsFingerprint which might help in disabling fingerprint, but not sure how to use it.
Is there a way to disable fingerprint or DTLS-SRTP and hack it to send an unencrypted data?