Is this sufficient or do we also need to set the codec and search for a RtpCodecCapabaility on the device that has 2 channels (and vice-versa for mono). Or how do these 2 settings interact?
Opus is always signalled (in the SDP) with /2 (so two channels) so hence its codecCapability.channels will be always 2, no matter you later enable stereo or not.
It’s defined in client side because it’s later propagated to the server. But you are right. In fact the dtx option in RTCRtpEncodingParameters is not even implemented in libwebrtc.