0.1.15 • Published 21 days ago
planetsport-nextjs-videoplayer v0.1.15
planetsport-nextjs-videoplayer
This web video player is a custom-built solution utilizing video.js, enhanced with additional functionality for logging video events to the API.
Install
planetsport-nextjs-videoplayer is available on npm. It can be installed with the following command:
npm install planetsport-nextjs-videoplayer
or
yarn add planetsport-nextjs-videoplayer
Import styling
import '../../planetsport-nextjs-videoplayer/styles/main.scss';
Example Componet
import { VideoPlayer } from 'planetsport-nextjs-videoplayer';
function MyComponent({video, api_url, gcp_base_url, token}) {
return (
<div>
<h1>My Component</h1>
<VideoPlayer
video={video}
api_url={api_url}
gcp_base_url={gcp_base_url}
token={token}
/>
</div>
);
}