mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 20:25:26 +03:00
Clarifying comment
This commit is contained in:
parent
7d796056e8
commit
779d684a56
@ -184,8 +184,12 @@ function PreviewContent({
|
||||
setProgress,
|
||||
setReviewed,
|
||||
}: PreviewContentProps) {
|
||||
const [manualPlayback, setManualPlayback] = useState(false);
|
||||
|
||||
// manual playback
|
||||
// safari is incapable of playing at a speed > 2x
|
||||
// so manual seeking is required on iOS
|
||||
|
||||
const [manualPlayback, setManualPlayback] = useState(false);
|
||||
useEffect(() => {
|
||||
if (!manualPlayback || !playerRef.current) {
|
||||
return;
|
||||
@ -199,6 +203,8 @@ function PreviewContent({
|
||||
return () => clearInterval(intervalId);
|
||||
}, [manualPlayback, playerRef]);
|
||||
|
||||
// preview
|
||||
|
||||
if (relevantPreview && playback) {
|
||||
return (
|
||||
<VideoPlayer
|
||||
|
||||
Loading…
Reference in New Issue
Block a user