Open Bug 1541471 Opened 5 years ago Updated 2 years ago

Implement spec-compliant `HTMLMediaElement`.captureStream

Categories

(Core :: Audio/Video: MediaStreamGraph, enhancement, P3)

enhancement

Tracking

()

Tracking Status
firefox68 --- affected

People

(Reporter: padenot, Unassigned)

References

(Blocks 3 open bugs)

Details

(Keywords: dev-doc-needed)

We have old and incorrect (per-spec) mozCaptureStream and mozCaptureStreamUntilEnded, that we should adjust and rename to be spec-compliant.

Type: defect → enhancement
Priority: -- → P3
Blocks: 1178751, 1336401
See Also: → 1183510
Blocks: 1541473

Fixing title because captureStreamUntilEnded was removed from the spec, since it is trivial to emulate with

video.onended = () => track.stop();
Summary: Implement spec-compliant `HTMLMediaElement`.{captureStream,captureStreamUntilEnded} → Implement spec-compliant `HTMLMediaElement`.captureStream

(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 with

video.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.

Depends on: 1592287
Depends on: 1592289
See Also: → 1734353
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.