| commit | 9297a16140aca937c60501583c321821c99f9790 | [log] [tgz] |
|---|---|---|
| author | Henrik Boström <hbos@webrtc.org> | Fri Oct 10 12:03:24 2025 |
| committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Oct 10 13:41:32 2025 |
| tree | 2a8a362b7091e92de7a3b811f24a9cf57b85983d | |
| parent | c17ba2ed3c9e42f5c1fbc92d85b4061d906cd527 [diff] |
PixelLimitResource: Add parameter for adaptation reason. The "reason" for adapting, which can be "cpu" or "quality" depending on what the resource is reportedly monitoring, impacts which RTCQualityAdaptationReason[1] we report in getStats() where these are mapped to "cpu" and "bandwidth". For testing purposes, it's useful to be able to control if PixelLimitResource results in being CPU or BW limited. This CL adds the new field trial enum parameter, "reason". In addition to unit tests in this CL I have manually verified this gets correctly plumbed to getStats() by going to https://henbos.github.io/codec-quality/src/index.html using --force-fieldtrials=WebRTC-PixelLimitResource/target_pixels:64800,interval:1s,reason:quality,toggle:10s/ [1] https://w3c.github.io/webrtc-stats/#rtcqualitylimitationreason-enum Bug: webrtc:447037084 Change-Id: I575e1a984a6e31a997ba43f3565b709465fafea5 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/413160 Commit-Queue: Henrik Boström <hbos@webrtc.org> Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Cr-Commit-Position: refs/heads/main@{#45896}
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.