Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onLoadedDataGetDuration = e => {
const currentDuration = e.target.duration;
const currentDurationWithOffset = currentDuration + this.state.timecodeOffset;
const durationInSeconds = secondsToTimecode(currentDurationWithOffset);
this.setState({
mediaDuration: durationInSeconds
});
};