Short YouTube transcript (Q&A) in which two speakers clarify that a TURN server only relays packets and cannot record decrypted audio/video because it lacks access to encryption keys; recording would require extraction of keys from the browser, which browsers do not allow.
Can a turn server be used to record audio and video in WebRTC?
No, that's not the role of the turn server. Turn server is just a packet relay that relays the packets. So it has access to all the packets of the conversation, but it does not have access to the encryption keys.
So it can also.
Record the raw audio.
So the thing is that WebRTC sends the data fully encrypted at all times, but the key to that encryption is not private to the turn server itself, so it can't just look at the packets and then record them. So we can play back the audio and video?
Yes, yes. If the browser allowed you to extract the keys, you could record them and then decrypt them later, but the browser, thankfully, does not allow that.
Okay, so if you're trying to record with the overtc, don't do it with the turn server just because you can't.