Invalidate RtpSender parameter cache on codec fallback/switch The RtpSender maintains a cache of RTP parameters on the signaling thread to improve performance and avoid frequent blocking calls to the worker thread. However, some parameter changes—such as encoder fallbacks or autonomous codec switches—occur directly on the worker thread. These out-of-band updates previously left the signaling thread cache in a stale state, leading to consistency check failures and potential logic errors. This change introduces a callback mechanism in the MediaSendChannel to notify the RtpSender when parameters change autonomously. Upon receiving this notification, the RtpSender invalidates its cached parameters and transaction ID on the signaling thread, ensuring subsequent requests fetch fresh data from the worker thread. Additionally, this re-enables the consistency RTC_DCHECK in GetParametersInternal that was previously disabled due to these cache mismatches. Bug: b/478050997 Change-Id: Icd57e04670d7af33844db4d58685c02314a2f531 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/452480 Reviewed-by: Sameer Vijaykar <samvi@google.com> Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#47036}
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.