import Grid from '@mui/material/Grid'; import { FC, ReactNode } from 'react'; import { BottomControlButtons } from '../bottom-control-buttons/BottomControlButtons'; import { TimeDisplay, PlaybackRateButton, PictureInPictureButton, FullscreenButton, } from '../bottom-control-buttons/components'; import { FwdButton } from '../bottom-control-buttons/components/FwdButton'; import { PlayPauseReplay } from '../bottom-control-buttons/components/PlayPauseReplay'; import { RwdButton } from '../bottom-control-buttons/components/RwdButton'; import { VolumeButton } from '../bottom-control-buttons/components/VolumeButton'; import { VolumeSlider } from '../bottom-control-buttons/components/VolumeSlider'; import { BottomControls } from '../bottom-controls/BottomControls'; import { CenteredBottomPlayback } from '../centered-bottom-playback/CenteredBottomPlayback'; import { CenteredPlayButton } from '../centered-play-button/CenteredPlayButton'; import { CenteredReplayButton } from '../centered-replay-button/CenteredReplayButton'; import { Controls } from '../controls/Controls'; import { useControlsStyles } from '../controls/useControlsStyles'; import { CorePlayer, CorePlayerProps } from '../core-player/CorePlayer'; import { PauseAnimation } from '../play-pause-animation/PauseAnimation'; import { PlayAnimation } from '../play-pause-animation/PlayAnimation'; import { ProgressBar } from '../progress-bar/ProgressBar'; import { AdditionalControls } from './components/AdditionalControls'; import { useMediaPlayerStyles } from './useMediaPlayerStyles'; export interface MediaPlayerProps extends Omit { children?: ReactNode; } /** * Out of the box media player, with all functionality and UI included * @category React Component * @category Player */ export const MediaPlayer: FC = ({ children, ...corePlayerProps }) => { const { gridCentered } = useMediaPlayerStyles().classes; const { controls } = useControlsStyles().classes; return ( {children} ); };