updateCounters()

in src/components/Player.js [102:116]


    updateCounters() {
        var currentTime = this.wavesurfer.getCurrentTime(),
            totalTime = this.wavesurfer.getDuration()

        var cd = moment.duration(currentTime, 'seconds')
        var _cd = moment.utc(cd.asMilliseconds()).format('m:ss');

        var td = moment.duration(totalTime, 'seconds')
        var _td = moment.utc(td.asMilliseconds()).format('m:ss');

        if (_td !== this.state.audioDuration) {this.setState({audioDuration: _td})}
        if (_cd !== this.state.audioCurrent) {this.setState({audioCurrent: _cd})}

        this.setState({isLoading: false})
    }