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

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

  if(!value.match('DISCONNECTED|CONNECTED'))
    throw SyntaxError(key+' param is not one of [DISCONNECTED|CONNECTED] ('+value+')');
}
function checkMediaState ( key , value ) { if ( typeof value != 'string' ) throw SyntaxError ( key + ' param should be a String, not ' + typeof value ) ; if ( ! value . match ( 'DISCONNECTED|CONNECTED' ) ) throw SyntaxError ( key + ' param is not one of [DISCONNECTED|CONNECTED] (' + value + ')' ) ; }
State of the media.

@typedef core/complexTypes.MediaState

@type {(DISCONNECTED|CONNECTED)}
 
Checker for {@link module:core/complexTypes.MediaState}

@memberof module:core/complexTypes

@param {external:String} key
@param {module:core/complexTypes.MediaState} value
State of the media .