- From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
- Date: Mon, 18 Mar 2024 19:30:32 +0000
- To: public-webrtc-logs@w3.org
> There are complex Worker scenarios that would benefit from not receiving the stream at a Worker-global entrypoint.
Doesn't the combination of event listener architecture and the constructor's options argument help decentralize things?
```js
// main.js
sender.transform = new RTCRtpScriptTransform(worker, {message: "myApp123"});
// worker.js
class MyApp123 {
constructor() {
self.addEventListener("rtctransform", ({transformer}) => {
if (transformer.options.message != "myApp123") return;
this.transformer = transformer;
});
}
}
--
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/webrtc-encoded-transform/issues/89#issuecomment-2004758766 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 18 March 2024 19:30:33 UTC