You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
From a shim perspective I'd slightly prefer a uniform naming. However, I can easily add an alias by setting RTCRtpSender.prototype.replaceTrack = RTCRtpSender.prototype.setTrack;
as shown in this fiddle (works best in Edge or Firefox)
webrtc 1.0 uses RTPSender.replaceTrack to let a user replace an audio/video track with another MediaStreamTrack (see here).
ORTC has setTrack for the same purpose.
From a shim perspective I'd slightly prefer a uniform naming. However, I can easily add an alias by setting
RTCRtpSender.prototype.replaceTrack = RTCRtpSender.prototype.setTrack;as shown in this fiddle (works best in Edge or Firefox)