- From: henbos via GitHub <sysbot+gh@w3.org>
- Date: Thu, 03 Oct 2024 08:01:13 +0000
- To: public-webrtc-logs@w3.org
Yep, and to really spell this out, the following should work: ``` const sendOnlyTransceiver = pc1.addTransceiver('video', {direction: 'sendonly'}); sendOnlyTransceiver.setCodecPreferences([sendOnlyCodec]); const recvOnlyTransceiver = pc1.addTransceiver('video', {direction: 'recvonly'}); recvOnlyTransceiver.setCodecPreferences([recvOnlyCodec]); const sendRecvTransceiver = pc1.addTransceiver('video', {direction: 'sendrecv'}); sendRecvTransceiver.setCodecPreferences([sendRecvCodec]); await pc1.setLocalDescription(); await pc2.setRemoteDescription(pc1.localDescription); await pc2.setLocalDescription(); // Notice how pc2 does not need to set any preference of their own await pc1.setRemoteDescription(pc2.localDescription); ``` But the following should NOT work: ``` const sendRecvTransceiver = pc1.addTransceiver('video', {direction: 'sendrecv'}); sendRecvTransceiver.setCodecPreferences([sendOnlyCodec, recvOnlyCodec]); ... negotiate .... ``` In the next meeting I will discuss how to handle errors (e.g. if the bad example should result in exceptions or if it should be interpreted as "no preference" after filtering). TBD -- GitHub Notification of comment by henbos Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/3006#issuecomment-2390771213 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 3 October 2024 08:01:15 UTC