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

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

  if(!value.match('KMS|KCS'))
    throw SyntaxError(key+' param is not one of [KMS|KCS] ('+value+')');
}
function checkServerType ( key , value ) { if ( typeof value != 'string' ) throw SyntaxError ( key + ' param should be a String, not ' + typeof value ) ; if ( ! value . match ( 'KMS|KCS' ) ) throw SyntaxError ( key + ' param is not one of [KMS|KCS] (' + value + ')' ) ; }
Indicates if the server is a real media server or a proxy

@typedef core/complexTypes.ServerType

@type {(KMS|KCS)}
 
Checker for {@link module:core/complexTypes.ServerType}

@memberof module:core/complexTypes

@param {external:String} key
@param {module:core/complexTypes.ServerType} value
Indicates if the server is a real media server or a proxy