From 9540005dfca860994c28614e79148b4d78756eb9 Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Mon, 18 Dec 2023 05:44:31 -0800 Subject: [PATCH] webrtc: add setParameterOptions to sender.setParameters adding a new RTCSetParameterOptions object which has a sequence of RTCEncodingOptions similar to WebCodecs VideoEncoderEncodeOptions https://w3c.github.io/webcodecs/#dictdef-videoencoderencodeoptions and its keyFrame flag. On the native side, this adds the request_key_frame flag to the RtpEncodingParameters. WebRTC CL: https://webrtc-review.googlesource.com/c/src/+/286741 Spec PRs: https://github.com/w3c/webrtc-pc/pull/2885 https://github.com/w3c/webrtc-extensions/pull/167 Chromestatus feature: https://chromestatus.com/feature/5161082937409536 BUG=chromium:1354101 Change-Id: I5bfe266eac5990b1921212babdee1af35edc4242 --- .../RTCRtpSender-setParameters-keyFrame.html | 94 +++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 webrtc/RTCRtpSender-setParameters-keyFrame.html diff --git a/webrtc/RTCRtpSender-setParameters-keyFrame.html b/webrtc/RTCRtpSender-setParameters-keyFrame.html new file mode 100644 index 00000000000000..3bc8cd2c02b0db --- /dev/null +++ b/webrtc/RTCRtpSender-setParameters-keyFrame.html @@ -0,0 +1,94 @@ + + + +RTCRtpSender.prototype.setParameters for generating keyFrames + + + +