Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Track Stats] Remove support for non-gUM/gDM tracks.
In a defensive stance (in terms of implementer burdon), the track.stats API was only defined for getUserMedia/getDisplayMedia-based sources. - This is a shame, because video processing is gaining popularity and it would be great to be able to know about frame counters for these non-device tracks as well. Based on implementation experience, this does seem unnecessary and I filed w3c/mediacapture-extensions#102, but for now this API should only be applicable to "device"-backed tracks. It's possible there could be more implementation burdon if it turns out that other sources are able to drop frames early (meaning, before the VideoTrackAdapter sees the frame), because if so we need to wire up the OnFrameDropped callback to all source implementations. But for now my understanding is that "early" OnFrameDropped is only applicable on real-time devices and that supporting all types of tracks would have been no extra effort. But until we can confirm this and convince the WG, let's align with the spec and throw an exception on non-device sources. # Skipping unrelated slow bot NOTRY=True Bug: chromium:1472978 Change-Id: I5cc40c07303a9e87d76105fb3dbf03b7259dd72f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4946414 Commit-Queue: Henrik Boström <hbos@chromium.org> Commit-Queue: Harald Alvestrand <hta@chromium.org> Reviewed-by: Harald Alvestrand <hta@chromium.org> Cr-Commit-Position: refs/heads/main@{#1211445}
- Loading branch information