lib/complexTypes/RTCPeerConnectionStats.js
function RTCPeerConnectionStats(rTCPeerConnectionStatsDict){
  if(!(this instanceof RTCPeerConnectionStats))
    return new RTCPeerConnectionStats(rTCPeerConnectionStatsDict)

  rTCPeerConnectionStatsDict = rTCPeerConnectionStatsDict || {}

  // Check rTCPeerConnectionStatsDict has the required fields
  // 
  // checkType('int64', 'rTCPeerConnectionStatsDict.dataChannelsOpened', rTCPeerConnectionStatsDict.dataChannelsOpened, {required: true});
  //  
  // checkType('int64', 'rTCPeerConnectionStatsDict.dataChannelsClosed', rTCPeerConnectionStatsDict.dataChannelsClosed, {required: true});
  //  

  // Init parent class
  RTCPeerConnectionStats.super_.call(this, rTCPeerConnectionStatsDict)

  // Set object properties
  Object.defineProperties(this, {
    dataChannelsOpened: {
      writable: true,
      enumerable: true,
      value: rTCPeerConnectionStatsDict.dataChannelsOpened
    },
    dataChannelsClosed: {
      writable: true,
      enumerable: true,
      value: rTCPeerConnectionStatsDict.dataChannelsClosed
    }
  })
}
function RTCPeerConnectionStats(rTCPeerConnectionStatsDict){
  if(!(this instanceof RTCPeerConnectionStats))
    return new RTCPeerConnectionStats(rTCPeerConnectionStatsDict)

  rTCPeerConnectionStatsDict = rTCPeerConnectionStatsDict || {}

  // Check rTCPeerConnectionStatsDict has the required fields
  // 
  // checkType('int64', 'rTCPeerConnectionStatsDict.dataChannelsOpened', rTCPeerConnectionStatsDict.dataChannelsOpened, {required: true});
  //  
  // checkType('int64', 'rTCPeerConnectionStatsDict.dataChannelsClosed', rTCPeerConnectionStatsDict.dataChannelsClosed, {required: true});
  //  

  // Init parent class
  RTCPeerConnectionStats.super_.call(this, rTCPeerConnectionStatsDict)

  // Set object properties
  Object.defineProperties(this, {
    dataChannelsOpened: {
      writable: true,
      enumerable: true,
      value: rTCPeerConnectionStatsDict.dataChannelsOpened
    },
    dataChannelsClosed: {
      writable: true,
      enumerable: true,
      value: rTCPeerConnectionStatsDict.dataChannelsClosed
    }
  })
}
function RTCPeerConnectionStats ( rTCPeerConnectionStatsDict ) { if ( ! ( this instanceof RTCPeerConnectionStats ) ) return new RTCPeerConnectionStats ( rTCPeerConnectionStatsDict ) rTCPeerConnectionStatsDict = rTCPeerConnectionStatsDict || { } // Check rTCPeerConnectionStatsDict has the required fields //  // checkType('int64', 'rTCPeerConnectionStatsDict.dataChannelsOpened', rTCPeerConnectionStatsDict.dataChannelsOpened, {required: true}); //   // checkType('int64', 'rTCPeerConnectionStatsDict.dataChannelsClosed', rTCPeerConnectionStatsDict.dataChannelsClosed, {required: true}); //   // Init parent class RTCPeerConnectionStats . super_ . call ( this , rTCPeerConnectionStatsDict ) // Set object properties Object . defineProperties ( this , { dataChannelsOpened : { writable : true , enumerable : true , value : rTCPeerConnectionStatsDict . dataChannelsOpened } , dataChannelsClosed : { writable : true , enumerable : true , value : rTCPeerConnectionStatsDict . dataChannelsClosed } } ) }
Statistics related to the peer connection.

@constructor module:core/complexTypes.RTCPeerConnectionStats

@property {external:int64} dataChannelsOpened
Represents the number of unique datachannels opened.
@property {external:int64} dataChannelsClosed
Represents the number of unique datachannels closed.

@extends module:core.RTCStats
Statistics related to the peer connection .