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,
|
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="{}"
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user