webrtc / samples

WebRTC Web demos and samples
https://webrtc.github.io/samples
BSD 3-Clause "New" or "Revised" License
13.74k stars 5.69k forks source link

e2ee: fix setCodecPreferences capabilities check #1650

Closed fippo closed 4 months ago

fippo commented 4 months ago

if (!'setCodecPreferences' in window.RTCRtpTransceiver.prototype) return; is missing (). Sync with the style used in change-codecs