mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 11:45:24 +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();
|
const touchEnd = new Date().getTime();
|
||||||
|
|
||||||
// consider tap less than 150 ms
|
// consider tap less than 100 ms
|
||||||
if (touchEnd - touchStart < 150) {
|
if (touchEnd - touchStart < 100) {
|
||||||
onClick();
|
onClick();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -203,7 +203,7 @@ export default function MobileTimelineView({
|
|||||||
<VideoPlayer
|
<VideoPlayer
|
||||||
options={{
|
options={{
|
||||||
preload: "auto",
|
preload: "auto",
|
||||||
autoplay: false,
|
autoplay: true,
|
||||||
controls: false,
|
controls: false,
|
||||||
muted: true,
|
muted: true,
|
||||||
loadingSpinner: false,
|
loadingSpinner: false,
|
||||||
@ -217,6 +217,7 @@ export default function MobileTimelineView({
|
|||||||
seekOptions={{}}
|
seekOptions={{}}
|
||||||
onReady={(player) => {
|
onReady={(player) => {
|
||||||
previewRef.current = player;
|
previewRef.current = player;
|
||||||
|
player.pause();
|
||||||
player.on("seeked", () => setSeeking(false));
|
player.on("seeked", () => setSeeking(false));
|
||||||
}}
|
}}
|
||||||
onDispose={() => {
|
onDispose={() => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user