16 lines
337 B
JavaScript
16 lines
337 B
JavaScript
|
'use client';
|
||
|
|
||
|
import ReactPlayer from 'react-player';
|
||
|
|
||
|
export default function Player(props) {
|
||
|
let { asset, src, poster, blurDataURL, thumbnailTime, ...rest } = props;
|
||
|
let config = { file: { attributes: { poster } } };
|
||
|
|
||
|
return <ReactPlayer
|
||
|
url={src}
|
||
|
config={config}
|
||
|
width="100%"
|
||
|
height="100%"
|
||
|
{...rest}
|
||
|
/>;
|
||
|
}
|