diff --git a/src/components/common/VideoPlayer/Components/LoadingVideo.tsx b/src/components/common/VideoPlayer/Components/LoadingVideo.tsx index 3d75451..81ec7b6 100644 --- a/src/components/common/VideoPlayer/Components/LoadingVideo.tsx +++ b/src/components/common/VideoPlayer/Components/LoadingVideo.tsx @@ -1,4 +1,5 @@ import { Box, CircularProgress, Typography } from "@mui/material"; +import { minDuration } from "../../../../constants/Misc.ts"; import { setVideoPlaying } from "../../../../state/features/globalSlice.ts"; import { useDispatch } from "react-redux"; import { PlayArrow } from "@mui/icons-material"; @@ -88,7 +89,7 @@ export const LoadingVideo = () => { {((!src && !isLoading.value) || (!startPlay.value && !canPlay.value)) && ( <> - {duration && ( + {duration > minDuration && ( { @@ -130,7 +105,7 @@ export const VideoContent = () => { {videoData?.title} - {videoData?.fileSize && ( + {videoData?.fileSize > minFileSize && ( { navigate(`/video/${videoObj?.user}/${videoObj?.id}`); }} > - {videoObj?.duration && ( + {videoObj?.duration > minDuration && (