static create(urlString) {
    let url;
    try {
      url = new URL(urlString);
    } catch (err) {
      PresentationUrl.logger_.info('Invalid URL: ' + urlString);
      return null;
    }
    switch (url.protocol) {
      case 'dial:':
        return PresentationUrl.parseDialUrl_(url);
      case 'https:':

        return PresentationUrl.parseLegacyUrl_(url);
      default:
        PresentationUrl.logger_.fine('Unhandled protocol: ' + url.protocol);
        return null;
    }
  }
/**
   * Constructs a DIAL media source from a URL. The URL can take on the new
   * format (with dial: protocol) or the old format (with https: protocol).
   * @param {string} urlString The media source URL.
   * @return {?PresentationUrl} A DIAL media source if the parse was
   *     successful, null otherwise.
   */
Constructs a DIAL media source from a URL. The URL can take on the new
format (with dial: protocol) or the old format (with https: protocol).
@param {string} urlString The media source URL.
@return {?PresentationUrl} A DIAL media source if the parse was
successful, null otherwise.
Constructs a DIAL media source from a URL . The URL can take on the new format ( with dial : protocol ) or the old format ( with https : protocol ) . @param { string } urlString The media source URL . @return { ?PresentationUrl } A DIAL media source if the parse was successful null otherwise .
static create(urlString) {
    let url;
    try {
      url = new URL(urlString);
    } catch (err) {
      PresentationUrl.logger_.info('Invalid URL: ' + urlString);
      return null;
    }
    switch (url.protocol) {
      case 'dial:':
        return PresentationUrl.parseDialUrl_(url);
      case 'https:':
        return PresentationUrl.parseLegacyUrl_(url);
      default:
        PresentationUrl.logger_.fine('Unhandled protocol: ' + url.protocol);
        return null;
    }
  }
static create ( urlString ) { let url ; try { url = new URL ( urlString ) ; } catch ( err ) { PresentationUrl . logger_ . info ( 'Invalid URL: ' + urlString ) ; return null ; } switch ( url . protocol ) { case 'dial:' : return PresentationUrl . parseDialUrl_ ( url ) ; case 'https:' : return PresentationUrl . parseLegacyUrl_ ( url ) ; default : PresentationUrl . logger_ . fine ( 'Unhandled protocol: ' + url . protocol ) ; return null ; } }
Constructs a DIAL media source from a URL.
Constructs a DIAL media source from a URL .