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,
|
setProgress,
|
||||||
setReviewed,
|
setReviewed,
|
||||||
}: PreviewContentProps) {
|
}: 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(() => {
|
useEffect(() => {
|
||||||
if (!manualPlayback || !playerRef.current) {
|
if (!manualPlayback || !playerRef.current) {
|
||||||
return;
|
return;
|
||||||
@ -199,6 +203,8 @@ function PreviewContent({
|
|||||||
return () => clearInterval(intervalId);
|
return () => clearInterval(intervalId);
|
||||||
}, [manualPlayback, playerRef]);
|
}, [manualPlayback, playerRef]);
|
||||||
|
|
||||||
|
// preview
|
||||||
|
|
||||||
if (relevantPreview && playback) {
|
if (relevantPreview && playback) {
|
||||||
return (
|
return (
|
||||||
<VideoPlayer
|
<VideoPlayer
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user