_onYouTubeIframeAPIReady(videoID) {
    this.initTrackingValues();

    MicrozineEvents.dispatchEvent('apiInitialized', { source: 'youtube' });
    let autoplay = this._properties.autoplay ? 1 : 0,
      id = this._properties.containerId
        ? this._properties.containerId
        : `video::${this._properties.id}`;

    this._player = new YT.Player(id, {
      videoId: videoID,
      events: {
        onStateChange: this._onPlayerStateChange.bind(this),
        onReady: this._onPlayerReady.bind(this)
      },
      playerVars: {
        rel: 0,
        autohide: 1,
        showinfo: 0,
        modestbranding: 1,
        autoplay: autoplay
      }
    });
  }
/**
   * Called when the YouTube scripts are ready; creates the inline video
   *
   * @param {string} videoID  - ID of the YouTube video
   * @returns {void}
   * @private
   */
Called when the YouTube scripts are ready; creates the inline video
@param {string} videoID  - ID of the YouTube video
@returns {void}
@private
Called when the YouTube scripts are ready ; creates the inline video @param { string } videoID - ID of the YouTube video @returns { void } @private
_onYouTubeIframeAPIReady(videoID) {
    this.initTrackingValues();
    MicrozineEvents.dispatchEvent('apiInitialized', { source: 'youtube' });
    let autoplay = this._properties.autoplay ? 1 : 0,
      id = this._properties.containerId
        ? this._properties.containerId
        : `video::${this._properties.id}`;
    this._player = new YT.Player(id, {
      videoId: videoID,
      events: {
        onStateChange: this._onPlayerStateChange.bind(this),
        onReady: this._onPlayerReady.bind(this)
      },
      playerVars: {
        rel: 0,
        autohide: 1,
        showinfo: 0,
        modestbranding: 1,
        autoplay: autoplay
      }
    });
  }
_onYouTubeIframeAPIReady ( videoID ) { this . initTrackingValues ( ) ; MicrozineEvents . dispatchEvent ( 'apiInitialized' , { source : 'youtube' } ) ; let autoplay = this . _properties . autoplay ? 1 : 0 , id = this . _properties . containerId ? this . _properties . containerId : ` ${ this . _properties . id } ` ; this . _player = new YT . Player ( id , { videoId : videoID , events : { onStateChange : this . _onPlayerStateChange . bind ( this ) , onReady : this . _onPlayerReady . bind ( this ) } , playerVars : { rel : 0 , autohide : 1 , showinfo : 0 , modestbranding : 1 , autoplay : autoplay } } ) ; }
Called when the YouTube scripts are ready; creates the inline video
 @param {string} videoID  - ID of the YouTube video
 @returns {void}
 @private
Called when the YouTube scripts are ready ; creates the inline video @param { string } videoID - ID of the YouTube video @returns { void } @private