From b9444fbf699df39a34447d700e1c41e2365d3370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Bostr=C3=B6m?= Date: Thu, 29 Aug 2024 13:56:26 +0200 Subject: [PATCH] r/restrictedResolution/resolutionRestriction --- index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 4f4d5ef..b1e076c 100644 --- a/index.html +++ b/index.html @@ -359,7 +359,7 @@

additional members to control audio packetization.

partial dictionary RTCRtpEncodingParameters {
-    RTCResolutionRestriction restrictedResolution;
+    RTCResolutionRestriction resolutionRestriction;
     unsigned long            ptime;
     boolean                  adaptivePtime = false;
 };
@@ -367,7 +367,7 @@

Dictionary {{RTCRtpEncodingParameters}} Members

- restrictedResolution of type {{RTCResolutionRestriction}} + resolutionRestriction of type {{RTCResolutionRestriction}}

The resolution at which to restrict this encoding.

@@ -377,12 +377,12 @@

Dictionary {{RTCRtpEncodingParameters}} Members

restrictions. The encoder will never upscale a frame. In simulcast, this can result in dropping top layer(s) if the input frame is too small as to avoid sending the same resolution on multiple layers.

-

When setting parameters, if {{restrictedResolution}} is specified +

When setting parameters, if {{resolutionRestriction}} is specified on any encoding, check that the following is true or else throw an {{InvalidModificationError}}:

  • -

    {{restrictedResolution}} is specified on all encodings and has +

    {{resolutionRestriction}} is specified on all encodings and has values in both dimensions that are greater than 0.

  • @@ -464,7 +464,7 @@

    Dictionary {{RTCResolutionRestriction}} Members

    in landscape mode but the frame is in portrait mode or vice versa, the encoder will internally swap the restricted width and height prior to each size comparison. This does not modify the value of - {{RTCRtpEncodingParameters/restrictedResolution}}. + {{RTCRtpEncodingParameters/resolutionRestriction}}.