getVideoFrigate increase timeout to 20 min
This commit is contained in:
parent
910a0fa309
commit
302f117b44
@ -82,7 +82,7 @@ export const proxyApi = {
|
|||||||
getVideoFrigate: async (videoUrl: string, onProgress: (percentage: number | undefined) => void) => {
|
getVideoFrigate: async (videoUrl: string, onProgress: (percentage: number | undefined) => void) => {
|
||||||
const response = await instanceApi.get<Blob>(videoUrl, {
|
const response = await instanceApi.get<Blob>(videoUrl, {
|
||||||
responseType: 'blob',
|
responseType: 'blob',
|
||||||
timeout: 10 * 60 * 1000,
|
timeout: 20 * 60 * 1000,
|
||||||
onDownloadProgress: (progressEvent) => {
|
onDownloadProgress: (progressEvent) => {
|
||||||
const total = progressEvent.total
|
const total = progressEvent.total
|
||||||
const current = progressEvent.loaded;
|
const current = progressEvent.loaded;
|
||||||
|
|||||||
@ -1,11 +1,10 @@
|
|||||||
import { Button, Flex, Group, Text } from '@mantine/core';
|
import { Flex, Group, Text } from '@mantine/core';
|
||||||
import { IconDownload } from '@tabler/icons-react';
|
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { proxyApi } from '../../../services/frigate.proxy/frigate.api';
|
import { proxyApi } from '../../../services/frigate.proxy/frigate.api';
|
||||||
import { EventFrigate } from '../../../types/event';
|
import { EventFrigate } from '../../../types/event';
|
||||||
import { getDurationFromTimestamps, unixTimeToDate } from '../../utils/dateUtil';
|
import { getDurationFromTimestamps, unixTimeToDate } from '../../utils/dateUtil';
|
||||||
import VideoPlayer from '../players/VideoPlayer';
|
|
||||||
import DownloadButton from '../buttons/DownloadButton';
|
import DownloadButton from '../buttons/DownloadButton';
|
||||||
|
import VideoPlayer from '../players/VideoPlayer';
|
||||||
|
|
||||||
interface EventPanelProps {
|
interface EventPanelProps {
|
||||||
event: EventFrigate
|
event: EventFrigate
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user