mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
fix: removed unused state
This commit is contained in:
parent
17b745434c
commit
cbf12e3f90
@ -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="{}"
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user