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 }) => (