[meta] Implement spec-compliant `HTMLMediaElement`.captureStream
Categories
(Core :: Audio/Video: MediaStreamGraph, enhancement, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox68 | --- | affected |
People
(Reporter: padenot, Assigned: alwu)
References
(Depends on 3 open bugs, Blocks 5 open bugs, )
Details
(5 keywords)
User Story
https://mozilla-hub.atlassian.net/browse/FFXP-677 platform-scheduled:2026-06-30 user-impact-score:400
We have old and incorrect (per-spec) mozCaptureStream and mozCaptureStreamUntilEnded, that we should adjust and rename to be spec-compliant.
| Reporter | ||
Updated•7 years ago
|
| Reporter | ||
Updated•7 years ago
|
| Reporter | ||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 2•7 years ago
|
||
Fixing title because captureStreamUntilEnded was removed from the spec, since it is trivial to emulate with
video.onended = () => track.stop();
Comment 3•7 years ago
|
||
(In reply to Jan-Ivar Bruaroey [:jib] (needinfo? me) from comment #2)
Fixing title because
captureStreamUntilEndedwas removed from the spec, since it is trivial to emulate withvideo.onended = () => track.stop();
Well, if the video element ended, there wouldn't be any live track left to stop. If you wanted to cancel the capturing you could probably do something with GC of the MediaStream that was returned from captureStream.
I think the safest way to emulate captureStreamUntilEnded would be to stop using the captured media element and replace it with a pristine one.
Updated•3 years ago
|
Comment 6•2 years ago
|
||
Even in some code of webgpu tests check if HTMLMediaElement.captureStream is implemented or not.
https://searchfox.org/mozilla-central/source/testing/web-platform/mozilla/tests/webgpu/webgpu/web_platform/util.js#463
https://github.com/gpuweb/cts/blob/b0f5b1839f40f8f793ec2e4a6eecae41a273e0b3/src/webgpu/web_platform/util.ts#L463
Updated•2 years ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•10 months ago
|
Updated•10 months ago
|
Comment 7•10 months ago
|
||
NI over to Alastor who has agreed to pick this work up.
| Assignee | ||
Comment 8•10 months ago
|
||
I’ll update my plan once I finish the investigation on this topic, keep my NI.
| Assignee | ||
Comment 9•9 months ago
|
||
I’m going to make this bug a meta bug. Currently, implementation notes for mozCaptureStream()` on MDN are incorrect, and those issues have now been fixed. The major noncompliance issue is that Firefox does not keep audio playout active while the stream is being captured.
I will first file bugs to address this issue, while keeping mozCaptureStreamXXX() unchanged to avoid breaking existing sites. After that, I’ll add a new implementation for captureStream() along with proper test coverage.
| Assignee | ||
Updated•9 months ago
|
| Assignee | ||
Updated•9 months ago
|
Updated•7 months ago
|
Updated•6 months ago
|
Description
•