- From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
- Date: Wed, 20 Mar 2024 20:33:58 +0000
- To: public-webrtc-logs@w3.org
I understand we got here incrementally, but I don't see why JS is needed when we can add first-class support for fanout. Is the source of an `RTCRtpEncodedSource` always `RTCRtpReceiver`? If so, why not skip the JS for this WebIDL: ```idl Promise<undefined> replaceTrack((MediaStreamTrack or RTCRtpReceiver)? withTrackOrReceiver); ``` Apps could then declare encoded-level forwarding directly: ```js recvPc.ontrack = async ({receiver}) => await relayPc.getSenders()[0].replaceTrack(receiver); ``` The app can fail-over using `replaceTrack` to a different `RTCRtpReceiver`. -- GitHub Notification of comment by jan-ivar Please view or discuss this issue at https://github.com/w3c/webrtc-extensions/pull/198#issuecomment-2010573945 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 20 March 2024 20:33:59 UTC