This project was as react example Demo.
In the project directory, you can run:
<VideoPlayer source={VIDEO_SOURCE} id="firstPlayer" />
const videoElement = useRef<HTMLVideoElement>(null)
const {
togglePlay,
isPlaying,
onFullScreen,
onMuted,
handleVideoSpeed,
currentSpeed,
muted,
onUpdateProgress,
duration,
progress,
onVolumeChange,
currentVolume,
handleManualProgress,
currentTime,
watchAgain,
isVideoEnd
} = useVideoPlayer(videoElement)
This project is using amplify in order to move faster with the demo