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