From e2a2a5923901a6b55962c07bc30b1eddd0aae55e Mon Sep 17 00:00:00 2001 From: Eddasol Date: Wed, 11 Dec 2024 14:46:18 +0100 Subject: [PATCH] Remove hardcoded video name --- .../Pages/MissionPage/VideoStream/FullScreenVideo.tsx | 6 +++--- .../MissionPage/VideoStream/VideoPlayerSimpleStream.tsx | 7 +------ .../Pages/MissionPage/VideoStream/VideoStreamCards.tsx | 6 +++--- .../Pages/MissionPage/VideoStream/VideoStreamWindow.tsx | 6 ++---- 4 files changed, 9 insertions(+), 16 deletions(-) diff --git a/frontend/src/components/Pages/MissionPage/VideoStream/FullScreenVideo.tsx b/frontend/src/components/Pages/MissionPage/VideoStream/FullScreenVideo.tsx index 17376911d..d457c0a00 100644 --- a/frontend/src/components/Pages/MissionPage/VideoStream/FullScreenVideo.tsx +++ b/frontend/src/components/Pages/MissionPage/VideoStream/FullScreenVideo.tsx @@ -29,7 +29,7 @@ const FullScreenCard = styled.div` interface IFullScreenVideoStreamCardProps { videoStream: MediaStream - videoStreamName: string + videoStreamName?: string toggleFullScreenMode: VoidFunction } @@ -56,8 +56,8 @@ export const FullScreenVideoStreamCard = ({ // Rotated stream is not supported for simpleplayer return ( - {videoStreamName} - + {videoStreamName && {videoStreamName}} + {fullScreenExitButton(false)} ) diff --git a/frontend/src/components/Pages/MissionPage/VideoStream/VideoPlayerSimpleStream.tsx b/frontend/src/components/Pages/MissionPage/VideoStream/VideoPlayerSimpleStream.tsx index c77b30f65..2fb6432e3 100644 --- a/frontend/src/components/Pages/MissionPage/VideoStream/VideoPlayerSimpleStream.tsx +++ b/frontend/src/components/Pages/MissionPage/VideoStream/VideoPlayerSimpleStream.tsx @@ -1,9 +1,4 @@ -interface IVideoPlayerProps { - videoStream: MediaStream - videoStreamName: string -} - -export const VideoPlayerSimpleStream = ({ videoStream, videoStreamName }: IVideoPlayerProps) => ( +export const VideoPlayerSimpleStream = ({ videoStream }: { videoStream: MediaStream }) => (