Add encoder switch request callback to VideoMediaSendChannel Introduce a callback mechanism to intercept and handle encoder switch requests within the video media engine. This makes it so that codec switch/fallback requests first go through the the RtpTransceiver on the signaling thread. That is consistent with other parameter related changes and allows the transceiver to update the sender object(s) before the codec change is applied. Specifically, the changes include: * Define EncoderSwitchRequestCallback and EncoderSwitchRequestAction in VideoMediaSendChannelInterface. * Updating WebRtcVideoSendChannel to optionally use the callback instead of posting directly to the worker thread when an encoder switch is requested. * Implementing GetEncoderSwitchRequestCallback in RtpTransceiver to ensure that when a switch occurs, cached RTP parameters on the signaling thread are cleared before the switch action is executed on the worker thread. * Updating RtpSender to support clearing cached parameters via std::optional. * Adding RTC_DCHECK to SafeTask and SafeInvocable to catch if the provided safety flag is invalid, early. Bug: b/478050997 Change-Id: Id81a219a0f3dab6a167248c21513723504fa6e79 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/454700 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Sameer Vijaykar <samvi@google.com> Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#47148}
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.