Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
jump = (distance) => {
if (this.state.sourceUnavailable) {
return;
}
this.pulsedPlaybackRate = toUpperCase(new DurationFmt({length: 'long'}).format({second: this.props.jumpBy}));
this.pulsedPlaybackState = distance > 0 ? 'jumpForward' : 'jumpBackward';
this.showFeedback();
this.startDelayedFeedbackHide();
this.seek(this.state.currentTime + distance);
this.startDelayedMiniFeedbackHide();
}