mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 03:35:26 +03:00
Try to fix safari empty frame
This commit is contained in:
parent
a0e79e9b7b
commit
eb2a2f9e03
@ -186,8 +186,8 @@ function PreviewContent({
|
||||
|
||||
const touchEnd = new Date().getTime();
|
||||
|
||||
// consider tap less than 150 ms
|
||||
if (touchEnd - touchStart < 150) {
|
||||
// consider tap less than 100 ms
|
||||
if (touchEnd - touchStart < 100) {
|
||||
onClick();
|
||||
}
|
||||
});
|
||||
|
||||
@ -203,7 +203,7 @@ export default function MobileTimelineView({
|
||||
<VideoPlayer
|
||||
options={{
|
||||
preload: "auto",
|
||||
autoplay: false,
|
||||
autoplay: true,
|
||||
controls: false,
|
||||
muted: true,
|
||||
loadingSpinner: false,
|
||||
@ -217,6 +217,7 @@ export default function MobileTimelineView({
|
||||
seekOptions={{}}
|
||||
onReady={(player) => {
|
||||
previewRef.current = player;
|
||||
player.pause();
|
||||
player.on("seeked", () => setSeeking(false));
|
||||
}}
|
||||
onDispose={() => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user