lib/complexTypes/AudioCaps.js
function AudioCaps(audioCapsDict){
  if(!(this instanceof AudioCaps))
    return new AudioCaps(audioCapsDict)

  audioCapsDict = audioCapsDict || {}

  // Check audioCapsDict has the required fields
  // 
  // checkType('AudioCodec', 'audioCapsDict.codec', audioCapsDict.codec, {required: true});
  //  
  // checkType('int', 'audioCapsDict.bitrate', audioCapsDict.bitrate, {required: true});
  //  

  // Init parent class
  AudioCaps.super_.call(this, audioCapsDict)

  // Set object properties
  Object.defineProperties(this, {
    codec: {
      writable: true,
      enumerable: true,
      value: audioCapsDict.codec
    },
    bitrate: {
      writable: true,
      enumerable: true,
      value: audioCapsDict.bitrate
    }
  })
}
function AudioCaps(audioCapsDict){
  if(!(this instanceof AudioCaps))
    return new AudioCaps(audioCapsDict)

  audioCapsDict = audioCapsDict || {}

  // Check audioCapsDict has the required fields
  // 
  // checkType('AudioCodec', 'audioCapsDict.codec', audioCapsDict.codec, {required: true});
  //  
  // checkType('int', 'audioCapsDict.bitrate', audioCapsDict.bitrate, {required: true});
  //  

  // Init parent class
  AudioCaps.super_.call(this, audioCapsDict)

  // Set object properties
  Object.defineProperties(this, {
    codec: {
      writable: true,
      enumerable: true,
      value: audioCapsDict.codec
    },
    bitrate: {
      writable: true,
      enumerable: true,
      value: audioCapsDict.bitrate
    }
  })
}
function AudioCaps ( audioCapsDict ) { if ( ! ( this instanceof AudioCaps ) ) return new AudioCaps ( audioCapsDict ) audioCapsDict = audioCapsDict || { } // Check audioCapsDict has the required fields //  // checkType('AudioCodec', 'audioCapsDict.codec', audioCapsDict.codec, {required: true}); //   // checkType('int', 'audioCapsDict.bitrate', audioCapsDict.bitrate, {required: true}); //   // Init parent class AudioCaps . super_ . call ( this , audioCapsDict ) // Set object properties Object . defineProperties ( this , { codec : { writable : true , enumerable : true , value : audioCapsDict . codec } , bitrate : { writable : true , enumerable : true , value : audioCapsDict . bitrate } } ) }
Format for audio media

@constructor module:core/complexTypes.AudioCaps

@property {module:core/complexTypes.AudioCodec} codec
Audio codec
@property {external:Integer} bitrate
Bitrate
Format for audio media