Skip to content

Conversation

@jan-ivar
Copy link
Member

@jan-ivar jan-ivar commented Oct 23, 2025

Fixes #229.


Preview | Diff

@jan-ivar
Copy link
Member Author

This now has all the parts concerning script transform wired up, and should be in good shape for review—I've opened #286 to tackle SFrame transform separately. @youennf PTAL.

|transform|.{{[[worker]]}}'s {{WorkerGlobalScope}} to run the following steps:
1. Let |transformer| be the {{RTCRtpScriptTransformer}} object associated with |transform|.
1. [=ReadableStream/cancel=] |transformer|.{{[[readable]]}}.
1. [=WritableStream/abort=] |transformer|.{{[[writable]]}}.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure this is pre-existing behaviour, but this is a behaviour I like.
We should check what implementations are doing.
I would go with an AbortError as a reason to cancel.

@youennf
Copy link
Collaborator

youennf commented Nov 20, 2025

I'll do a follow-up review tomorrow. I think that for the handling of streams in case of unsetting the transform, we might want a dedicated issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Current steps are inefficient and difficult to build on. Cleanup needed

3 participants