Re: [webrtc-encoded-transform] How to support both sframe and JS transform at the same time (#266)

One question is whether we want to support custom per-packet SFrame in RTCRtpScriptTransform.
Meaning that JS does the decryption/encryption per packet. I don't know whether we want to support this.
That would require:
1. On receiver side, a SFrame packet is considered as a SFrame frame and exposed as RTCEncodedFrame.
2. On sender side, given the limitation to write a frame that was read from the readable stream, SFrame metadata could be set on the encoded frame to tell the SFrame packetizer how to split the data into packets.

For the case of per-packet SFrame with SFrameTransform, there are other ways to expose the same functionality.
For instance, we could introduce:
```
partial interface RTCRtpScriptTransformer {
     attribute SFrameTransform? sframeTransform;
}
```
`sframeTransform` would only be settable for `sframe` RTCRtpScriptTransform.

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


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

Received on Wednesday, 29 October 2025 08:42:35 UTC