import {
  VeltVideoPlayer
} from '@veltdev/react';

export default function App() {

  return (
    <div>
      <VeltVideoPlayer src={"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/Sintel.mp4"} />
    </div>
  );
}
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.

<VeltVideoPlayer src={"https://firebasestorage.googleapis.com/v0/b/snippyly.appspot.com/o/external%2Fvelt.mp4?alt=media&token=d8af2697-c797-4610-b886-ca510b231097"} />

Was this page helpful?