lib/complexTypes/VideoCaps.js
function VideoCaps(videoCapsDict){
  if(!(this instanceof VideoCaps))
    return new VideoCaps(videoCapsDict)

  videoCapsDict = videoCapsDict || {}

  // Check videoCapsDict has the required fields
  // 
  // checkType('VideoCodec', 'videoCapsDict.codec', videoCapsDict.codec, {required: true});
  //  
  // checkType('Fraction', 'videoCapsDict.framerate', videoCapsDict.framerate, {required: true});
  //  

  // Init parent class
  VideoCaps.super_.call(this, videoCapsDict)

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

  videoCapsDict = videoCapsDict || {}

  // Check videoCapsDict has the required fields
  // 
  // checkType('VideoCodec', 'videoCapsDict.codec', videoCapsDict.codec, {required: true});
  //  
  // checkType('Fraction', 'videoCapsDict.framerate', videoCapsDict.framerate, {required: true});
  //  

  // Init parent class
  VideoCaps.super_.call(this, videoCapsDict)

  // Set object properties
  Object.defineProperties(this, {
    codec: {
      writable: true,
      enumerable: true,
      value: videoCapsDict.codec
    },
    framerate: {
      writable: true,
      enumerable: true,
      value: videoCapsDict.framerate
    }
  })
}
function VideoCaps ( videoCapsDict ) { if ( ! ( this instanceof VideoCaps ) ) return new VideoCaps ( videoCapsDict ) videoCapsDict = videoCapsDict || { } // Check videoCapsDict has the required fields //  // checkType('VideoCodec', 'videoCapsDict.codec', videoCapsDict.codec, {required: true}); //   // checkType('Fraction', 'videoCapsDict.framerate', videoCapsDict.framerate, {required: true}); //   // Init parent class VideoCaps . super_ . call ( this , videoCapsDict ) // Set object properties Object . defineProperties ( this , { codec : { writable : true , enumerable : true , value : videoCapsDict . codec } , framerate : { writable : true , enumerable : true , value : videoCapsDict . framerate } } ) }
Format for video media

@constructor module:core/complexTypes.VideoCaps

@property {module:core/complexTypes.VideoCodec} codec
Video codec
@property {module:core/complexTypes.Fraction} framerate
Framerate
Format for video media