in modules/core/src/components/playback-control/index.js [192:222]
render() {
const {startTime, endTime, timestamp, lookAhead, buffered, ...otherProps} = this.props;
if (!Number.isFinite(timestamp) || !Number.isFinite(startTime)) {
return null;
}
const bufferRange = buffered.map(r => ({
startTime: Math.max(r[0], startTime),
endTime: Math.min(r[1], endTime)
}));
return (
<DualPlaybackControl
{...otherProps}
bufferRange={bufferRange}
currentTime={timestamp}
lookAhead={lookAhead}
startTime={startTime}
endTime={endTime}
isPlaying={this.state.isPlaying}
formatTick={this._formatTick}
formatTimestamp={this._formatTimestamp}
formatLookAhead={this._formatLookAhead}
onSeek={this._onSeek}
onPlay={this._onPlay}
onPause={this._onPause}
onLookAheadChange={this._onLookAheadChange}
/>
);
}