Bug 902003 - Stats webidl tuning, rename stats enums to not contain dashes etc. r=jesup
authorJan-Ivar Bruaroey <jib@mozilla.com>
Thu, 24 Oct 2013 14:07:20 -0400
changeset 167145 bd9d47feac878aa9f46e3ff180cb6a3eca820a3d
parent 167144 c7ea3c8c837587a82510b7b5812ddb75ee583f7d
child 167146 0c1d4dbe85c977095c718b4385b7d75db7e99c71
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjesup
bugs902003
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 902003 - Stats webidl tuning, rename stats enums to not contain dashes etc. r=jesup
dom/webidl/RTCStatsReport.webidl
--- a/dom/webidl/RTCStatsReport.webidl
+++ b/dom/webidl/RTCStatsReport.webidl
@@ -3,57 +3,58 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
  * http://dev.w3.org/2011/webrtc/editor/webrtc.html#rtcstatsreport-object
  */
 
 enum RTCStatsType {
-  "inbound-rtp",
-  "outbound-rtp"
+  "inboundrtp",
+  "outboundrtp"
 };
 
 dictionary RTCStats {
   DOMHighResTimeStamp timestamp;
   RTCStatsType type;
   DOMString id;
 };
 
 dictionary RTCRTPStreamStats : RTCStats {
   DOMString ssrc;
   DOMString remoteId;
+  boolean isRemote;
   DOMString mediaTrackId;
   DOMString transportId;
   DOMString codecId;
 };
 
 dictionary RTCInboundRTPStreamStats : RTCRTPStreamStats {
   unsigned long packetsReceived;
-  unsigned long bytesReceived;
-  float jitter;
+  unsigned long long bytesReceived;
+  double jitter;
 };
 
 dictionary RTCOutboundRTPStreamStats : RTCRTPStreamStats {
   unsigned long packetsSent;
-  unsigned long bytesSent;
+  unsigned long long bytesSent;
 };
 
 dictionary RTCMediaStreamTrackStats : RTCStats {
   DOMString trackIdentifier;      // track.id property
   boolean remoteSource;
   sequence<DOMString> ssrcIds;
   unsigned long audioLevel;       // Only for audio, the rest are only for video
   unsigned long frameWidth;
   unsigned long frameHeight;
-  unsigned long framesPerSecond;  // The nominal FPS value
+  double framesPerSecond;         // The nominal FPS value
   unsigned long framesSent;
   unsigned long framesReceived;   // Only for remoteSource=true
   unsigned long framesDecoded;
-  long first;
+  unsigned long first;
 };
 
 dictionary RTCMediaStreamStats : RTCStats {
   DOMString streamIdentifier;     // stream.id property
   sequence<DOMString> trackIds;   // Note: stats object ids, not track.id
 };
 
 dictionary RTCTransportStats: RTCStats {
@@ -66,18 +67,18 @@ dictionary RTCIceComponentStats : RTCSta
   long component;
   unsigned long bytesSent;
   unsigned long bytesReceived;
   boolean activeConnection;
 };
 
 enum RTCStatsIceCandidateType {
   "host",
-  "server-reflexive",
-  "peer-reflexive",
+  "serverreflexive",
+  "peerreflexive",
   "relayed"
 };
 
 dictionary RTCIceCandidateStats : RTCStats {
   DOMString candidateId;
   DOMString ipAddress;
   long portNumber;
   RTCStatsIceCandidateType candidateType;
@@ -86,17 +87,17 @@ dictionary RTCIceCandidateStats : RTCSta
 dictionary RTCCodecStats : RTCStats {
   unsigned long payloadType;       // As used in RTP encoding.
   DOMString codec;                 // video/vp8 or equivalent
   unsigned long clockRate;
   unsigned long channels;          // 2=stereo, missing for most other cases.
   DOMString parameters;            // From SDP description line
 };
 
-callback RTCStatsReportCallback = void (object value, DOMString key, RTCStatsReport obj);
+callback RTCStatsReportCallback = void (RTCStatsReport obj);
 
 // This is the internal representation of the report in this implementation
 // to be received from c++
 
 dictionary RTCStatsReportInternal {
   sequence<RTCRTPStreamStats>         rtpStreamStats;
   sequence<RTCInboundRTPStreamStats>  inboundRTPStreamStats;
   sequence<RTCOutboundRTPStreamStats> outboundRTPStreamStats;