lib/complexTypes/VideoCodec.js
function checkVideoCodec(key, value)
{
  if(typeof value != 'string')
    throw SyntaxError(key+' param should be a String, not '+typeof value);

  if(!value.match('VP8|H264|RAW'))
    throw SyntaxError(key+' param is not one of [VP8|H264|RAW] ('+value+')');
}
function checkVideoCodec(key, value)
{
  if(typeof value != 'string')
    throw SyntaxError(key+' param should be a String, not '+typeof value);

  if(!value.match('VP8|H264|RAW'))
    throw SyntaxError(key+' param is not one of [VP8|H264|RAW] ('+value+')');
}
function checkVideoCodec ( key , value ) { if ( typeof value != 'string' ) throw SyntaxError ( key + ' param should be a String, not ' + typeof value ) ; if ( ! value . match ( 'VP8|H264|RAW' ) ) throw SyntaxError ( key + ' param is not one of [VP8|H264|RAW] (' + value + ')' ) ; }
Codec used for transmission of video.

@typedef core/complexTypes.VideoCodec

@type {(VP8|H264|RAW)}
 
Checker for {@link module:core/complexTypes.VideoCodec}

@memberof module:core/complexTypes

@param {external:String} key
@param {module:core/complexTypes.VideoCodec} value
Codec used for transmission of video .