code: function Player(selector, contentInfo) {
    // Create a VR View iframe depending on the parameters.
    var iframe = this.createIframe_(contentInfo);
    this.iframe = iframe;
  
    var parentEl = document.querySelector(selector);
    parentEl.appendChild(iframe);
  
    // Make a sender as well, for relying commands to the child IFrame.
    this.sender = new IFrameMessageSender(iframe);
  
    // Listen to messages from the IFrame.
    window.addEventListener('message', this.onMessage_.bind(this), false);
  
    // Expose a public .isPaused attribute.
    this.isPaused = false;
  
    // Expose a public .isMuted attribute.
    this.isMuted = false;
    if (typeof contentInfo.muted !== 'undefined') {
      this.isMuted = contentInfo.muted;
    }
  
    // Other public attributes
    this.currentTime = 0;
    this.duration = 0;
    this.volume = contentInfo.volume != undefined ? contentInfo.volume : 1;
  
    if (Util.isIOS()) {
      this.injectFullscreenStylesheet_();
    }
  }
docs: Entry point for the VR View JS API.
  
  Emits the following events:
  ready: When the player is loaded.
  modechange: When the viewing mode changes (normal, fullscreen, VR).
  click (id): When a hotspot is clicked.