Guard buffer_ and handle stream restart in VideoReceiveStream2 Store decode_sync_ pointer in VideoReceiveStream2 and guard buffer_ with worker_sequence_checker_. Recreate buffer_ in Start() if it has been stopped. Recreating buffer_ in Start() when it has been stopped allows VideoReceiveStream2 to be stopped and restarted cleanly. Calling Stop() marks the underlying VideoStreamBufferController as stopped, which halts frame decode scheduling; recreating the controller upon restart resets it to an active state, clears stale frame and timer state from the previous run, and re-registers a fresh decode scheduler with DecodeSynchronizer. Bug: none Change-Id: Ic57ebaf991e1b047665524839fc9367801428afe Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/496240 Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/main@{#48409}
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.