w3c / mediacapture-extensions

Extensions to Media Capture and Streams by the WebRTC Working Group
https://w3c.github.io/mediacapture-extensions/
Other
19 stars 15 forks source link

Expose MediaStream in workers #26

Closed youennf closed 4 months ago

youennf commented 3 years ago

Preview | Diff

jan-ivar commented 3 years ago

@youennf Why? (I'm not opposed, just would like to know where this came up).

Naively, I'd expect streams to be useful only to access older (main-thread only) APIs?

youennf commented 3 years ago

Naively, I'd expect streams to be useful only to access older (main-thread only) APIs?

If we want to expose WebAudio or RTCPeerConnection APIs to workers, it is convenient to have MediaStream available there. And it should not be a big deal to implement.

alvestrand commented 3 years ago

At the moment, the only purpose would be to reuse libraries of JS code that already use MediaStreams. We don't have any objects exposed that have MediaStream in their interface. We should probably submit this when we have the proposal to import such an interface to Worker.

jan-ivar commented 6 months ago

https://github.com/w3c/mediacapture-fromelement/issues/65 would be a reason to merge this.

dontcallmedom-bot commented 6 months ago

This issue had an associated resolution in WebRTC February 2024 meeting – 20 February 2024 (Expose MediaStream in Workers):

RESOLUTION: Exposing MediaStream in workers is reasonable but low priority