Deduplicate codecs matched by codec preferences RtpTransceiver::SetCodecPreferences removes exact duplicates, so a codec that is sent and received at different levels stays listed twice when an application passes both its sender and its receiver capabilities. MatchCodecPreference ignores levels when matching preferences against supported codecs, which made both entries resolve to the same codec and append its payload type (and any associated RTX codec) twice. Since CodecVendor started finalizing offered and answered codec lists, the duplicate payload type fails offer and answer creation. Add matched codecs with CodecList::PushIfNotPresent in MatchCodecPreference so that each codec and its associated RTX codec appear at most once. Fixed: chromium:585451900 Change-Id: I3354931ad9bfe0faab2418adac453e1088b7103b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/517180 Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/main@{#49302}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.