diff --git a/client/src/components/VideoPlayer.jsx b/client/src/components/VideoPlayer.jsx index 6cceb68..4658fd4 100644 --- a/client/src/components/VideoPlayer.jsx +++ b/client/src/components/VideoPlayer.jsx @@ -1,26 +1,29 @@ import ReactPlayer from 'react-player'; -const VideoPlayer = ({ stream, isAudioMute, name }) => ( -
-
-

- {name === 'My Stream' ? 'My Stream' : 'Remote Stream'} -

-
- +const VideoPlayer = ({ stream, isAudioMute, name }) => { + const myStream = name === "My Stream" ? true : false; + return ( +
+
+

+ {name} +

+
+ +
-
-); + ) +}; export default VideoPlayer; \ No newline at end of file diff --git a/client/src/pages/room/[slug].jsx b/client/src/pages/room/[slug].jsx index 9f5e9d4..01039a9 100644 --- a/client/src/pages/room/[slug].jsx +++ b/client/src/pages/room/[slug].jsx @@ -231,7 +231,7 @@ const RoomPage = () => { }
- {myStream && remoteStream && + {myStream && remoteStream && !isSendButtonVisible && (