const React = require('react'); const PropTypes = require('prop-types'); const classnames = require('classnames'); const SeekBar = require('./SeekBar'); const PlayPauseButton = require('./PlayPauseButton'); const VolumeBar = require('./VolumeBar'); const SubtitlesButton = require('./SubtitlesButton'); const ShareButton = require('./ShareButton'); const styles = require('./styles'); const ControlBar = (props) => (
); ControlBar.propTypes = { className: PropTypes.string, popupClassName: PropTypes.string, paused: PropTypes.bool, time: PropTypes.number, duration: PropTypes.number, volume: PropTypes.number, muted: PropTypes.bool, subtitleTracks: PropTypes.arrayOf(PropTypes.shape({ id: PropTypes.string.isRequired, label: PropTypes.string.isRequired, origin: PropTypes.string.isRequired })).isRequired, selectedSubtitleTrackId: PropTypes.string, subtitleSize: PropTypes.number, subtitleDelay: PropTypes.number, subtitleDarkBackground: PropTypes.bool, dispatch: PropTypes.func }; ControlBar.defaultProps = { subtitleTracks: Object.freeze([]) }; module.exports = ControlBar;