Closed Bug 1848811 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 41472 - Implement MediaStreamTrack.getStats() behind RuntimeEnabledFeatures.

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox118 fixed)

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 41472 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/41472
Details from upstream follow.

Henrik Boström <hbos@chromium.org> wrote:

Implement MediaStreamTrack.getStats() behind RuntimeEnabledFeatures.

This CL implements the following API behind a test-only flag:
https://w3c.github.io/mediacapture-extensions/#mediastreamtrack-frame-stats

It fully captures the ground work outlined in the extension spec,
however the flag is test-only because this prototype is subject to change
depending on some ongoing spec PRs and because we're currently failing
one of the WPTs added - to be fixed in a follow-up CL.

Once the prototype is matured we'll do an I2S before unflagging.

Bug: chromium:1472978
Change-Id: Ia1156243e1379e9b77da4dd9bd13e8a90b53d196
Reviewed-on: https://chromium-review.googlesource.com/4778470
WPT-Export-Revision: 16ced0d35e6a886e8504e72a6e42ada708515c10

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 6 subtests

Status Summary

Firefox

OK : 1
FAIL: 6

Chrome

OK : 1
FAIL: 6

Safari

OK : 1
FAIL: 6

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /mediacapture-extensions/MediaStreamTrack-getFrameStats.https.html [wpt.fyi]
    • totalFrames increases over time: FAIL (Chrome: FAIL, Safari: FAIL)
    • deliveredFrames increases, even without sinks: FAIL (Chrome: FAIL, Safari: FAIL)
    • discardedFrames increases when frameRate decimation is happening: FAIL (Chrome: FAIL, Safari: FAIL)
    • totalFrames is the sum of deliveredFrames and discardedFrames: FAIL (Chrome: FAIL, Safari: FAIL)
    • Stats are frozen while disabled: FAIL (Chrome: FAIL, Safari: FAIL)
    • getFrameStats throws on audio tracks: FAIL (Chrome: FAIL, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/63511e74ca63 [wpt PR 41472] - Implement MediaStreamTrack.getFrameStats() behind a test-only flag., a=testonly https://hg.mozilla.org/integration/autoland/rev/e68bd5126787 [wpt PR 41472] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
You need to log in before you can comment on or make changes to this bug.