A simple lovely player.
npm install --save mx-player
# or
yarn add mx-player
import 'mx-player/dist/index.css'
import { Player } from 'mx-player'
const App = () => {
return <Player src={src} />
}
interface PlayerProps {
maxHeight?: number
maxWidth?: number
src: string
height?: number
width?: number
}
export declare const Player: React.FC<
PlayerProps &
Omit<
React.DetailedHTMLProps<
React.VideoHTMLAttributes<HTMLVideoElement>,
HTMLVideoElement
>,
'height' | 'width'
>
>
MIT © Innei