Implement spec-compliant `HTMLMediaElement`.captureStream
Categories
(Core :: Audio/Video: MediaStreamGraph, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox68 | --- | affected |
People
(Reporter: padenot, Unassigned)
References
(Blocks 6 open bugs)
Details
(4 keywords)
User Story
https://mozilla-hub.atlassian.net/browse/FFXP-677 platform-scheduled:2025-09-01
We have old and incorrect (per-spec) mozCaptureStream
and mozCaptureStreamUntilEnded
, that we should adjust and rename to be spec-compliant.
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Fixing title because captureStreamUntilEnded
was removed from the spec, since it is trivial to emulate with
video.onended = () => track.stop();
Comment 3•6 years ago
|
||
(In reply to Jan-Ivar Bruaroey [:jib] (needinfo? me) from comment #2)
Fixing title because
captureStreamUntilEnded
was 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•1 year 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•1 year ago
|
![]() |
||
Updated•8 months ago
|
![]() |
||
Updated•8 months ago
|
![]() |
||
Updated•8 months ago
|
![]() |
||
Updated•7 months ago
|
![]() |
||
Updated•5 months ago
|
Updated•2 months ago
|
Description
•