docs: function videojs(id, options, ready) {
    var tag = void 0;
  
    // Allow for element or ID to be passed in
    // String ID
    if (typeof id === 'string') {
  
      // Adjust for jQuery ID syntax
      if (id.indexOf('#') === 0) {
        id = id.slice(1);
      }
  
      // If a player instance has already been created for this ID return it.
      if (videojs.getPlayers()[id]) {
  
        // If options or ready funtion are passed, warn
        if (options) {
          _log2['default'].warn('Player "' + id + '" is already initialised. Options will not be applied.');
        }
  
        if (ready) {
          videojs.getPlayers()[id].ready(ready);
        }
  
        return videojs.getPlayers()[id];
      }
  
      // Otherwise get element for ID
      tag = Dom.getEl(id);
  
      // ID is a media element
    } else {
      tag = id;
    }
  
    // Check for a useable element
    // re: nodeName, could be a box div also
    if (!tag || !tag.nodeName) {
      throw new TypeError('The element or ID supplied is not valid. (videojs)');
    }
  
    // Element may have a player attr referring to an already created player instance.
    // If not, set up a new player and return the instance.
    return tag.player || _player2['default'].players[tag.playerId] || new _player2['default'](tag, options, ready);
  }