How to use the @bbc/react-transcript-editor/timecodeConverter.secondsToTimecode function in @bbc/react-transcript-editor

To help you get started, we’ve selected a few @bbc/react-transcript-editor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bbc / digital-paper-edit-client / src / Components / Transcripts / TranscriptAnnotate / index.js View on Github external
onLoadedDataGetDuration = e => {
    const currentDuration = e.target.duration;
    const currentDurationWithOffset = currentDuration + this.state.timecodeOffset;
    const durationInSeconds = secondsToTimecode(currentDurationWithOffset);

    this.setState({
      mediaDuration: durationInSeconds
    });
  };

@bbc/react-transcript-editor

A React component to make transcribing audio and video easier and faster.

MIT
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis