code: function(id, options, ready){
    var tag; // Element of ID
  
    // 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 (vjs.players[id]) {
        return vjs.players[id];
  
      // Otherwise get element for ID
      } else {
        tag = vjs.el(id);
      }
  
    // ID is a media element
    } else {
      tag = id;
    }
  
    // Check for a useable element
    if (!tag || !tag.nodeName) { // re: nodeName, could be a box div also
      throw new TypeError('The element or ID supplied is not valid. (videojs)'); // Returns
    }
  
    // 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'] || new vjs.Player(tag, options, ready);
  }
docs: Doubles as the main function for users to create a player instance and also
  the main library object.
  
  **ALIASES** videojs, _V_ (deprecated)
  
  The `vjs` function can be used to initialize or retrieve a player.
  
  var myPlayer = vjs('my_video_id');
  
  @param  {String|Element} id      Video element or video element ID
  @param  {Object=} options        Optional options object for config/settings
  @param  {Function=} ready        Optional ready callback
  @return {vjs.Player}             A player instance
  @namespace