tiefen_space_h5/components/Player/index.js

16 lines
337 B
JavaScript
Raw Normal View History

2024-08-05 13:10:33 +08:00
'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}
/>;
}