Re: [webrtc-rtptransport] Should RtpSendStream/RtpReceiveStream be transferable? (#36)

Here is an example of how would look like this API without transferable.
```
// Setup API
partial dictionary RtpSendStreamInit {
    required Worker worker;
}
partial dictionary RtpReceiveStreamInit {
    required Worker worker;
}
partial interface RtpSender {
  Promise<undefined> replaceSendStreams(Worker worker);
}
partial interface RtpReceiver {
  Promise<undefined> replaceReceiveStreams(Worker worker);
}
partial interface RtpTransport {
  Promise<undefined> addRtpSendStream(RtpSendStreamInit);
  Promise<undefined> addRtpReceiveStream(RtpReceiveStreamInit);
}

// Packet API
[Exposed=Worker]
interface RtpSendStream {
    ...
}
[Exposed=Worker]
interface RtpReceiveStream {
    ...
}

// Worker context events
[Exposed=Worker]
interface RTCRtpReceiveStreamEvent: Event {
    readonly attribute RtpReceiveStream stream;
}
[Exposed=Worker]
interface RTCRtpSendStreamEvent: Event {
    readonly attribute RtpSendStream stream;
}
partial interface DedicatedWorkerGlobalScope {
    attribute onrtcrtpsendstream;
    attribute onrtcrtpreceivestream;
}
```

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


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

Received on Tuesday, 14 May 2024 17:07:49 UTC