Re: [webrtc-encoded-transform] Expose flow control information to transform (#206)

[RTCRtpScriptTransformer](https://w3c.github.io/webrtc-encoded-transform/#rtcrtpscripttransformer) seems like an appropriate place for such API. If using events, `Event.preventDefault()` could be used to disable the default handling.

For instance, a `keyFrameRequested` event could be defined and fired when receiving PLI/FIR. Default handling would be to call the [generate key frame algorithm](https://w3c.github.io/webrtc-encoded-transform/#abstract-opdef-generate-key-frame-algorithm). Web app could decide to be smarter, by calling `preventDefault()` on the event and then call itself [generateKeyFrame()](https://w3c.github.io/webrtc-encoded-transform/#dom-rtcrtpscripttransformer-generatekeyframe) whenever appropriate.

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


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

Received on Friday, 29 September 2023 09:36:00 UTC