fix: removed unused state

This commit is contained in:
JohnMark Sill 2022-06-24 09:35:56 -05:00 committed by Blake Blackshear
parent 17b745434c
commit cbf12e3f90

View File

@ -37,12 +37,7 @@ export const HistoryVideo = ({
onPlay, onPlay,
}: HistoryVideoProps) => { }: HistoryVideoProps) => {
const apiHost = useApiHost(); const apiHost = useApiHost();
const videoRef = useRef<HTMLVideoElement>(); const videoRef = useRef<HTMLVideoElement>(null);
const [videoProperties, setVideoProperties] = useState<VideoProperties>({
posterUrl: '',
videoUrl: '',
});
useEffect(() => { useEffect(() => {
let video: any; let video: any;
@ -100,7 +95,6 @@ export const HistoryVideo = ({
[videoIsPlaying, onTimeUpdate] [videoIsPlaying, onTimeUpdate]
); );
const { posterUrl, videoUrl } = videoProperties;
return ( return (
<div data-vjs-player> <div data-vjs-player>
<video <video
@ -108,8 +102,6 @@ export const HistoryVideo = ({
onTimeUpdate={onTimeUpdateHandler} onTimeUpdate={onTimeUpdateHandler}
onPause={onPause} onPause={onPause}
onPlay={onPlay} onPlay={onPlay}
poster={posterUrl}
src={videoUrl}
className="video-js vjs-fluid" className="video-js vjs-fluid"
data-setup="{}" data-setup="{}"
/> />