- From: youennf via GitHub <sysbot+gh@w3.org>
- Date: Fri, 29 Sep 2023 09:35:58 +0000
- To: public-webrtc-logs@w3.org
[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