import React from 'react' ; import { Player } from 'video-react' ; import 'video-react/dist/video-react.css' ; import style from './index.less' ; interface IProps { width ? : number ; height ? : number ; srcOrigin : string ; poster : string ; } export default function ( props ) { const { srcOrigin , width , height , poster } = props ; return ( < div className = { style . videoContainer } > < Player width = { width } height = { height } src = { srcOrigin } poster = { poster } / > < /div>); }