_resetTracking() {

    // Make sure if an interval is currently tracking playback duration that it
    // is stopped
    clearInterval(this._playedAmountIntervalId);

    // Clear out the interval id tracker
    this._playedAmountIntervalId = null;

    // Reset the tracker for the playback duration interval
    this._lastRun = 0;

    // Reset the furthest reached playback location
    this._furthestReach = 0;

    // Reset the playback duration sum
    this._playedAmount = 0;

    // Make sure that all of the message handlers are unbound before setup
    this.off('play', this._mediaEventHandlers.onInitialPlayEvent);
    this.off('play', this._mediaEventHandlers.startRecordingPlaybackData);
    this.off('pause', this._mediaEventHandlers.pauseRecordingPlaybackData);
    this.off('adPlay', this._mediaEventHandlers.pauseRecordingPlaybackData);
    this.off('complete', this._mediaEventHandlers.onVideoEnd);
    this.off('destroy', this._mediaEventHandlers.onVideoEnd);

    // Bind the handler that performs set up on the initial play event
    this.on('play', this._mediaEventHandlers.onInitialPlayEvent);

    // Bind the handler that records playback duration
    this.on('play', this._mediaEventHandlers.startRecordingPlaybackData);

    // Bind the handler that pauses the recording of playback duration
    this.on('pause', this._mediaEventHandlers.pauseRecordingPlaybackData);
    this.on('adPlay', this._mediaEventHandlers.pauseRecordingPlaybackData);
  }
/**
   * Reset the internal tracking metrics back to their base values and unbind any
   * handlers that are currently listening for messages
   *
   * @private
   */
Reset the internal tracking metrics back to their base values and unbind any
handlers that are currently listening for messages

@private
Reset the internal tracking metrics back to their base values and unbind any handlers that are currently listening for messages @private
_resetTracking() {
    clearInterval(this._playedAmountIntervalId);
    this._playedAmountIntervalId = null;
    this._lastRun = 0;
    this._furthestReach = 0;
    this._playedAmount = 0;
    this.off('play', this._mediaEventHandlers.onInitialPlayEvent);
    this.off('play', this._mediaEventHandlers.startRecordingPlaybackData);
    this.off('pause', this._mediaEventHandlers.pauseRecordingPlaybackData);
    this.off('adPlay', this._mediaEventHandlers.pauseRecordingPlaybackData);
    this.off('complete', this._mediaEventHandlers.onVideoEnd);
    this.off('destroy', this._mediaEventHandlers.onVideoEnd);
    this.on('play', this._mediaEventHandlers.onInitialPlayEvent);
    this.on('play', this._mediaEventHandlers.startRecordingPlaybackData);
    this.on('pause', this._mediaEventHandlers.pauseRecordingPlaybackData);
    this.on('adPlay', this._mediaEventHandlers.pauseRecordingPlaybackData);
  }
_resetTracking ( ) { clearInterval ( this . _playedAmountIntervalId ) ; this . _playedAmountIntervalId = null ; this . _lastRun = 0 ; this . _furthestReach = 0 ; this . _playedAmount = 0 ; this . off ( 'play' , this . _mediaEventHandlers . onInitialPlayEvent ) ; this . off ( 'play' , this . _mediaEventHandlers . startRecordingPlaybackData ) ; this . off ( 'pause' , this . _mediaEventHandlers . pauseRecordingPlaybackData ) ; this . off ( 'adPlay' , this . _mediaEventHandlers . pauseRecordingPlaybackData ) ; this . off ( 'complete' , this . _mediaEventHandlers . onVideoEnd ) ; this . off ( 'destroy' , this . _mediaEventHandlers . onVideoEnd ) ; this . on ( 'play' , this . _mediaEventHandlers . onInitialPlayEvent ) ; this . on ( 'play' , this . _mediaEventHandlers . startRecordingPlaybackData ) ; this . on ( 'pause' , this . _mediaEventHandlers . pauseRecordingPlaybackData ) ; this . on ( 'adPlay' , this . _mediaEventHandlers . pauseRecordingPlaybackData ) ; }
Reset the internal tracking metrics back to their base values and unbind any
 handlers that are currently listening for messages
Reset the internal tracking metrics back to their base values and unbind any handlers that are currently listening for messages
// Make sure if an interval is currently tracking playback duration that it // is stopped // Clear out the interval id tracker // Reset the tracker for the playback duration interval // Reset the furthest reached playback location // Reset the playback duration sum // Make sure that all of the message handlers are unbound before setup // Bind the handler that performs set up on the initial play event // Bind the handler that records playback duration // Bind the handler that pauses the recording of playback duration