Re: [webrtc-encoded-transform] Generalize ScriptTransform constructor (#89)

If the goal is to be able to properly shim createEncodedTransform in JS, I think the following can be written:
- Create a ReadableStream R1 and WritableStream W1 in window environment with JS sources SR1 and SW1
- Create a worker and a script transform
- Set the transform on the sender/receiver
- In the worker, when receiving the readable/writable R2/W2, transfer them back to window (async operation).
- When receiving R2 and W2 in window, use them to make SR1 and SW1 functional (async operation)
- Return R1 and W1

-- 
GitHub Notification of comment by youennf
Please view or discuss this issue at https://github.com/w3c/webrtc-encoded-transform/issues/89#issuecomment-843867145 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 19 May 2021 08:22:15 UTC