From d2a3062303e40d2ca9c2220f6419372c865d737b Mon Sep 17 00:00:00 2001 From: Jan-Ivar Bruaroey Date: Thu, 11 Jan 2018 16:33:26 -0500 Subject: [PATCH] Make audioLevel and voiceActivityFlag optional and non-nullable. --- webrtc.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/webrtc.html b/webrtc.html index 095344c2f..3a2cded1e 100644 --- a/webrtc.html +++ b/webrtc.html @@ -6703,7 +6703,7 @@

Methods

dictionary RTCRtpContributingSource {
     required DOMHighResTimeStamp timestamp;
     required unsigned long       source;
-    required byte?     audioLevel;
+    byte     audioLevel;
 };

Dictionary RTCRtpContributingSource Members

@@ -6724,15 +6724,15 @@

Dictionary RTCRtpContributingSource Members

synchronization source.

audioLevel of type byte, required, nullable
+ "idlMemberType">byte

The audio level contained in the last RTP packet played from this source. For CSRCs, audioLevel must be the level value defined in [[!RFC6465]] if the RFC 6465 header extension is - present, otherwise null. For SSRCs, it must be the - level value defined in [[!RFC6464]] if the RFC 6464 header + present, otherwise this member must be absent. For SSRCs, it must + be the level value defined in [[!RFC6464]] if the RFC 6464 header extension is present, otherwise a browser computed value as if it - had come from RFC 6464 (never null).

+ had come from RFC 6464 (never absent).

Both RFCs define the level as an integral value from 0 to 127 representing the audio level in negative decibels relative to the loudest signal that the system could possibly encode. Thus, @@ -6744,21 +6744,21 @@

Dictionary RTCRtpContributingSource Members

dictionary RTCRtpSynchronizationSource : RTCRtpContributingSource {
-    required boolean?  voiceActivityFlag;
+    boolean voiceActivityFlag;
 };

Dictionary RTCRtpSynchronizationSource Members

voiceActivityFlag of type boolean, required, nullable
+ "idlMemberType">boolean

Whether the last RTP packet played from this source contains voice activity (true) or not (false). If the RFC 6464 extension header was not present, or if the peer has signaled that it is not using the V bit by setting the "vad" extension attribute to "off", as described in [[!RFC6464]], Section 4, - voiceActivityFlag will be null.

+ voiceActivityFlag will be absent.