lib/complexTypes/RTCOutboundRTPStreamStats.js
function RTCOutboundRTPStreamStats(rTCOutboundRTPStreamStatsDict){
  if(!(this instanceof RTCOutboundRTPStreamStats))
    return new RTCOutboundRTPStreamStats(rTCOutboundRTPStreamStatsDict)

  // Check rTCOutboundRTPStreamStatsDict has the required fields
  checkType('int', 'rTCOutboundRTPStreamStatsDict.packetsSent', rTCOutboundRTPStreamStatsDict.packetsSent, {required: true});
  checkType('int', 'rTCOutboundRTPStreamStatsDict.bytesSent', rTCOutboundRTPStreamStatsDict.bytesSent, {required: true});
  checkType('float', 'rTCOutboundRTPStreamStatsDict.targetBitrate', rTCOutboundRTPStreamStatsDict.targetBitrate, {required: true});
  checkType('float', 'rTCOutboundRTPStreamStatsDict.roundTripTime', rTCOutboundRTPStreamStatsDict.roundTripTime, {required: true});

  // Init parent class
  RTCOutboundRTPStreamStats.super_.call(this, rTCOutboundRTPStreamStatsDict)

  // Set object properties
  Object.defineProperties(this, {
    packetsSent: {
      writable: true,
      enumerable: true,
      value: rTCOutboundRTPStreamStatsDict.packetsSent
    },
    bytesSent: {
      writable: true,
      enumerable: true,
      value: rTCOutboundRTPStreamStatsDict.bytesSent
    },
    targetBitrate: {
      writable: true,
      enumerable: true,
      value: rTCOutboundRTPStreamStatsDict.targetBitrate
    },
    roundTripTime: {
      writable: true,
      enumerable: true,
      value: rTCOutboundRTPStreamStatsDict.roundTripTime
    }
  })
}
function RTCOutboundRTPStreamStats(rTCOutboundRTPStreamStatsDict){
  if(!(this instanceof RTCOutboundRTPStreamStats))
    return new RTCOutboundRTPStreamStats(rTCOutboundRTPStreamStatsDict)

  // Check rTCOutboundRTPStreamStatsDict has the required fields
  checkType('int', 'rTCOutboundRTPStreamStatsDict.packetsSent', rTCOutboundRTPStreamStatsDict.packetsSent, {required: true});
  checkType('int', 'rTCOutboundRTPStreamStatsDict.bytesSent', rTCOutboundRTPStreamStatsDict.bytesSent, {required: true});
  checkType('float', 'rTCOutboundRTPStreamStatsDict.targetBitrate', rTCOutboundRTPStreamStatsDict.targetBitrate, {required: true});
  checkType('float', 'rTCOutboundRTPStreamStatsDict.roundTripTime', rTCOutboundRTPStreamStatsDict.roundTripTime, {required: true});

  // Init parent class
  RTCOutboundRTPStreamStats.super_.call(this, rTCOutboundRTPStreamStatsDict)

  // Set object properties
  Object.defineProperties(this, {
    packetsSent: {
      writable: true,
      enumerable: true,
      value: rTCOutboundRTPStreamStatsDict.packetsSent
    },
    bytesSent: {
      writable: true,
      enumerable: true,
      value: rTCOutboundRTPStreamStatsDict.bytesSent
    },
    targetBitrate: {
      writable: true,
      enumerable: true,
      value: rTCOutboundRTPStreamStatsDict.targetBitrate
    },
    roundTripTime: {
      writable: true,
      enumerable: true,
      value: rTCOutboundRTPStreamStatsDict.roundTripTime
    }
  })
}
function RTCOutboundRTPStreamStats ( rTCOutboundRTPStreamStatsDict ) { if ( ! ( this instanceof RTCOutboundRTPStreamStats ) ) return new RTCOutboundRTPStreamStats ( rTCOutboundRTPStreamStatsDict ) // Check rTCOutboundRTPStreamStatsDict has the required fields checkType ( 'int' , 'rTCOutboundRTPStreamStatsDict.packetsSent' , rTCOutboundRTPStreamStatsDict . packetsSent , { required : true } ) ; checkType ( 'int' , 'rTCOutboundRTPStreamStatsDict.bytesSent' , rTCOutboundRTPStreamStatsDict . bytesSent , { required : true } ) ; checkType ( 'float' , 'rTCOutboundRTPStreamStatsDict.targetBitrate' , rTCOutboundRTPStreamStatsDict . targetBitrate , { required : true } ) ; checkType ( 'float' , 'rTCOutboundRTPStreamStatsDict.roundTripTime' , rTCOutboundRTPStreamStatsDict . roundTripTime , { required : true } ) ; // Init parent class RTCOutboundRTPStreamStats . super_ . call ( this , rTCOutboundRTPStreamStatsDict ) // Set object properties Object . defineProperties ( this , { packetsSent : { writable : true , enumerable : true , value : rTCOutboundRTPStreamStatsDict . packetsSent } , bytesSent : { writable : true , enumerable : true , value : rTCOutboundRTPStreamStatsDict . bytesSent } , targetBitrate : { writable : true , enumerable : true , value : rTCOutboundRTPStreamStatsDict . targetBitrate } , roundTripTime : { writable : true , enumerable : true , value : rTCOutboundRTPStreamStatsDict . roundTripTime } } ) }
Statistics that represents the measurement metrics for the outgoing media
stream.

@constructor module:core/complexTypes.RTCOutboundRTPStreamStats

@property {external:Integer} packetsSent
Total number of RTP packets sent for this SSRC.
@property {external:Integer} bytesSent
Total number of bytes sent for this SSRC.
@property {external:Number} targetBitrate
Presently configured bitrate target of this SSRC, in bits per second.
@property {external:Number} roundTripTime
Estimated round trip time (seconds) for this SSRC based on the RTCP
timestamp.

@extends module:core.RTCRTPStreamStats
Statistics that represents the measurement metrics for the outgoing media stream .