import { VeltVideoPlayer} from '@veltdev/react';export default function App() { return ( <div> <VeltVideoPlayer src={"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/Sintel.mp4"} darkMode={false} sync={true} /> </div> );}
<!DOCTYPE html><html lang="en"> <head> <title>Video Player documentation</title> </head> <body> <!-- dark-mode="false" - to disable dark mode --> <!-- sync="true" - to enable sync mode --> <velt-video-player src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/Sintel.mp4" dark-mode="false" sync="true" > </velt-video-player> </body></html>
Video Player Setup
Prebuilt video player setup
Set up the prebuilt VeltVideoPlayer component to add a collaborative video player with built-in time-anchored comments, reactions, and playback controls.
React / Next.js
Other Frameworks
1
Import VeltVideoPlayer component
Import the VeltVideoPlayer component.
import { VeltVideoPlayer} from '@veltdev/react'
2
Add src to VeltVideoPlayer
Add your video src URL to the src attribute of the VeltVideoPlayer component.There are a few other properties: