-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
The SFrameTransform interface appears to have been designed with two disparate uses in mind:
- in place of a RTCRtpScriptTransform:
transceiver.sender.transform = new SFrameTransform;
- as a builtin TransformStream:
onrtctransform = async ({transformer: {readable, writable}}) => { await readable.pipeThrough(new SFrameTransform({role: "encrypt"})).pipeTo(writable); };
These are entirely different uses that arguably should be two different interfaces.
For instance, web developers shouldn't have to figure out what this means:
await readable.pipeThrough(transceiver.sender.transform).pipeTo(writable); // what does this do?
A RTCRtpScriptTransform, in contrast, has no stream-like properties on main-thread.
Unfortunately, the current spec conflates two "transform" concepts, making this hard to see. But #229 should clear this up.
Metadata
Metadata
Assignees
Labels
No labels