Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transferable Streams #430

Closed
ricea opened this issue Aug 14, 2020 · 4 comments
Closed

Transferable Streams #430

ricea opened this issue Aug 14, 2020 · 4 comments
Labels
position: positive venue: WHATWG Specifications in a WHATWG Workstream

Comments

@ricea
Copy link

ricea commented Aug 14, 2020

Request for Mozilla Position on an Emerging Web Specification

Other information

Pull request: whatwg/streams#1053
TAG early review: w3ctag/design-reviews#332
Explainer: https://github.com/whatwg/streams/blob/master/transferable-streams-explainer.md
Relevant sections of the standard:

@annevk annevk added the venue: WHATWG Specifications in a WHATWG Workstream label Aug 17, 2020
@tschneidereit
Copy link

CC @lukewagner, as this might be relevant to some WebAssembly related uses of Streams.

@plorenz-etes
Copy link

Since #330 (insertable streams) is now marked as "worth prototyping", I think transferable streams should be, too.

In order to implement end to end encryption in audio/video calls, insertable streams are required. However, the encrypting/decrypting process should be moved to a worker ( https://developer.mozilla.org/en-US/docs/Web/API/Worker ) in order to help performance - but this can only be done if passing streams to a worker is possible, which requires transferable streams.

@martinthomson
Copy link
Member

These are not likely to be the same thing. "Insertable streams" (ugh, that name still annoys me) is looking like it might be implemented using a worklet style of script rather than a full worker, and it applies mostly to WebRTC media streams. So there might be some sense in maximizing the similarities, it doesn't seem like those are guaranteed.

For this, the opinions of @asutherland or @annevk might be useful.

@annevk
Copy link
Contributor

annevk commented Jan 12, 2022

I have not reviewed the algorithms in detail, but this is a feature we've been supportive of ever since we talked about adding streams to the web platform. So I suggest we close this as worth prototyping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
position: positive venue: WHATWG Specifications in a WHATWG Workstream
Projects
None yet
Development

No branches or pull requests

5 participants