From fab05d396318ca59282c7da6036eef3738a770f7 Mon Sep 17 00:00:00 2001
From: Youenn Fablet
Date: Fri, 19 Nov 2021 11:24:43 +0100
Subject: [PATCH 1/6] Add a new webrtcCodec parameter to MediaCapabilitiesInfo
---
index.bs | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/index.bs b/index.bs
index e85f738..4a600ec 100644
--- a/index.bs
+++ b/index.bs
@@ -762,6 +762,7 @@ spec: secure-contexts; urlPrefix: https://www.w3.org/TR/secure-contexts/
required boolean supported;
required boolean smooth;
required boolean powerEfficient;
+ RTCRtpCodecCapability webrtcCodec;
};
@@ -783,7 +784,9 @@ spec: secure-contexts; urlPrefix: https://www.w3.org/TR/secure-contexts/
for='MediaCapabilitiesInfo'>supported, smooth, powerEfficient fields which are
- booleans.
+ booleans, and an associated optional webrtcCodec of type
+ {{RTCRtpCodecCapability}}.
@@ -795,6 +798,11 @@ spec: secure-contexts; urlPrefix: https://www.w3.org/TR/secure-contexts/
temperature or the fans noise.
+
+ Authors can use {{MediaCapabilitiesInfo/webrtcCodec}} to set up their
+ preferred WebRTC codecs using the {{RTCRtpTransceiver/setCodecPreferences}} API.
+
+
A {{MediaCapabilitiesDecodingInfo}} has associated
keySystemAccess
@@ -867,6 +875,13 @@ spec: secure-contexts; urlPrefix: https://www.w3.org/TR/secure-contexts/
source has side effects such as enabling different encoding
modules.
+
+ If the user agent is able to encode the media represented by
+ configuration and configuration has a type
+ of {{MediaEncodingType/webrtc}}, set {{MediaCapabilitiesInfo/webrtcCodec}}
+ to the {{RTCRtpCodecCapability}} object representing the supported
+ codec configuration.
+
Return info.
@@ -941,6 +956,13 @@ spec: secure-contexts; urlPrefix: https://www.w3.org/TR/secure-contexts/
efficiency unless the device's power source has side effects
such as enabling different decoding modules.
+
+ If the user agent is able to decode the media represented by
+ configuration and configuration has a type
+ of {{MediaDecodingType/webrtc}}, set {{MediaCapabilitiesInfo/webrtcCodec}}
+ to the {{RTCRtpCodecCapability}} object representing the supported
+ codec configuration.
+
Return info.
From 410b490fe439bebd145f5822cf70666c0e02d432 Mon Sep 17 00:00:00 2001
From: Youenn Fablet
Date: Mon, 22 Nov 2021 16:32:23 +0100
Subject: [PATCH 2/6] Add distinct audio/video members
---
index.bs | 50 +++++++++++++++++++++++++++++++++++++++-----------
1 file changed, 39 insertions(+), 11 deletions(-)
diff --git a/index.bs b/index.bs
index 4a600ec..54a0c93 100644
--- a/index.bs
+++ b/index.bs
@@ -762,7 +762,12 @@ spec: secure-contexts; urlPrefix: https://www.w3.org/TR/secure-contexts/
required boolean supported;
required boolean smooth;
required boolean powerEfficient;
- RTCRtpCodecCapability webrtcCodec;
+ WebRTCMediaCapabilitiesInfo webrtc;
+ };
+
+ dictionary WebRTCMediaCapabilitiesInfo {
+ RTCRtpCodecCapability audio;
+ RTCRtpCodecCapability video;
};
@@ -785,8 +790,8 @@ spec: secure-contexts; urlPrefix: https://www.w3.org/TR/secure-contexts/
for='MediaCapabilitiesInfo'>smooth, powerEfficient fields which are
booleans, and an associated optional webrtcCodec of type
- {{RTCRtpCodecCapability}}.
+ for='MediaCapabilitiesInfo'>webrtc of type
+ {{WebRTCMediaCapabilitiesInfo}}.
@@ -799,7 +804,7 @@ spec: secure-contexts; urlPrefix: https://www.w3.org/TR/secure-contexts/
- Authors can use {{MediaCapabilitiesInfo/webrtcCodec}} to set up their
+ Authors can use {{MediaCapabilitiesInfo/webrtc}} to set up their
preferred WebRTC codecs using the {{RTCRtpTransceiver/setCodecPreferences}} API.
@@ -878,9 +883,21 @@ spec: secure-contexts; urlPrefix: https://www.w3.org/TR/secure-contexts/
If the user agent is able to encode the media represented by
configuration and configuration has a type
- of {{MediaEncodingType/webrtc}}, set {{MediaCapabilitiesInfo/webrtcCodec}}
- to the {{RTCRtpCodecCapability}} object representing the supported
- codec configuration.
+ of {{MediaEncodingType/webrtc}}, run the following substeps:
+
+ - Let webrtc be a
+ {{WebRTCMediaCapabilitiesInfo}} dictionary.
+ - If audio is represented by configuration, set
+ webrtc's {{WebRTCMediaCapabilitiesInfo/audio}}
+ to a {{RTCRtpCodecCapability}} dictionary representing the
+ supported audio configuration.
+ - If video is represented by configuration, set
+ webrtc's {{WebRTCMediaCapabilitiesInfo/video}}
+ to a {{RTCRtpCodecCapability}} dictionary representing the
+ supported video configuration.
+ - Set info's {{MediaCapabilitiesInfo/webrtc}}
+ to webrtc.
+
Return info.
@@ -959,10 +976,21 @@ spec: secure-contexts; urlPrefix: https://www.w3.org/TR/secure-contexts/
If the user agent is able to decode the media represented by
configuration and configuration has a type
- of {{MediaDecodingType/webrtc}}, set {{MediaCapabilitiesInfo/webrtcCodec}}
- to the {{RTCRtpCodecCapability}} object representing the supported
- codec configuration.
-
+ of {{MediaDecodingType/webrtc}}, run the following substeps:
+
+ - Let webrtc be a
+ {{WebRTCMediaCapabilitiesInfo}} dictionary.
+ - If audio is represented by configuration, set
+ webrtc's {{WebRTCMediaCapabilitiesInfo/audio}}
+ to a {{RTCRtpCodecCapability}} dictionary representing the
+ supported audio configuration.
+ - If video is represented by configuration, set
+ webrtc's {{WebRTCMediaCapabilitiesInfo/video}}
+ to a {{RTCRtpCodecCapability}} dictionary representing the
+ supported video configuration.
+ - Set info's {{MediaCapabilitiesInfo/webrtc}}
+ to webrtc.
+
Return info.
From 8b40cacda4119e8e928173dfb163c1500a08d658 Mon Sep 17 00:00:00 2001
From: Chris Needham
Date: Fri, 13 Sep 2024 19:55:42 +0100
Subject: [PATCH 3/6] Update index.bs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-authored-by: Marcos Cáceres
---
index.bs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.bs b/index.bs
index 54a0c93..99172ba 100644
--- a/index.bs
+++ b/index.bs
@@ -883,7 +883,7 @@ spec: secure-contexts; urlPrefix: https://www.w3.org/TR/secure-contexts/
If the user agent is able to encode the media represented by
configuration and configuration has a type
- of {{MediaEncodingType/webrtc}}, run the following substeps:
+ of {{MediaEncodingType/webrtc}}:
- Let webrtc be a
{{WebRTCMediaCapabilitiesInfo}} dictionary.
From a89ded7a14c9a1595fd46c41b51e72e3005723fb Mon Sep 17 00:00:00 2001
From: Chris Needham
Date: Fri, 13 Sep 2024 19:55:52 +0100
Subject: [PATCH 4/6] Update index.bs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-authored-by: Marcos Cáceres
---
index.bs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.bs b/index.bs
index 99172ba..931ec6a 100644
--- a/index.bs
+++ b/index.bs
@@ -881,7 +881,7 @@ spec: secure-contexts; urlPrefix: https://www.w3.org/TR/secure-contexts/
modules.
- If the user agent is able to encode the media represented by
+ If the user agent can encode the media represented by
configuration and configuration has a type
of {{MediaEncodingType/webrtc}}:
From b27ee49f55983664c129bee7a424ac0ab394998b Mon Sep 17 00:00:00 2001
From: Chris Needham
Date: Fri, 13 Sep 2024 19:56:06 +0100
Subject: [PATCH 5/6] Update index.bs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-authored-by: Marcos Cáceres
---
index.bs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.bs b/index.bs
index 931ec6a..8d27d97 100644
--- a/index.bs
+++ b/index.bs
@@ -976,7 +976,7 @@ spec: secure-contexts; urlPrefix: https://www.w3.org/TR/secure-contexts/
-
If the user agent is able to decode the media represented by
configuration and configuration has a type
- of {{MediaDecodingType/webrtc}}, run the following substeps:
+ of {{MediaDecodingType/webrtc}}:
- Let webrtc be a
{{WebRTCMediaCapabilitiesInfo}} dictionary.
From a892551329600e7ed3c6a9143d588035a58e48ed Mon Sep 17 00:00:00 2001
From: Chris Needham
Date: Fri, 13 Sep 2024 19:56:19 +0100
Subject: [PATCH 6/6] Update index.bs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-authored-by: Marcos Cáceres
---
index.bs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.bs b/index.bs
index 8d27d97..1ca8051 100644
--- a/index.bs
+++ b/index.bs
@@ -885,7 +885,7 @@ spec: secure-contexts; urlPrefix: https://www.w3.org/TR/secure-contexts/
configuration and configuration has a type
of {{MediaEncodingType/webrtc}}:
- - Let webrtc be a
+
- Let |webrtc| be a
{{WebRTCMediaCapabilitiesInfo}} dictionary.
- If audio is represented by configuration, set
webrtc's {{WebRTCMediaCapabilitiesInfo/audio}}