mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 11:45:24 +03:00
Fix iOS empty frame
This commit is contained in:
parent
8f83914690
commit
a7f4f9919d
@ -88,7 +88,12 @@ export default function PreviewThumbnailPlayer({
|
|||||||
onPlayback(false);
|
onPlayback(false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ root: document.getElementById("pageRoot"), threshold: 1.0 }
|
{
|
||||||
|
threshold: 1.0,
|
||||||
|
root: document.getElementById("pageRoot"),
|
||||||
|
// iOS has bug where poster is empty frame until video starts playing so playback needs to begin earlier
|
||||||
|
rootMargin: isSafari ? "10% 0px 25% 0px" : "0px",
|
||||||
|
}
|
||||||
);
|
);
|
||||||
if (node) autoPlayObserver.current.observe(node);
|
if (node) autoPlayObserver.current.observe(node);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user