@@ -15,6 +15,10 @@ import {
15
15
import ReactPlayer from 'react-player' ;
16
16
import Button from '@mui/material/Button' ;
17
17
import AccountCircleIcon from '@mui/icons-material/AccountCircle' ;
18
+ import MicOffIcon from '@mui/icons-material/MicOff' ;
19
+ import MicIcon from '@mui/icons-material/Mic' ;
20
+ import VideocamIcon from '@mui/icons-material/Videocam' ;
21
+ import VideocamOffIcon from '@mui/icons-material/VideocamOff' ;
18
22
import VideoMeetingControl from './VideoMeetingControl' ;
19
23
20
24
const Videomeeting = ( props ) : JSX . Element => {
@@ -59,8 +63,8 @@ const Videomeeting = (props): JSX.Element => {
59
63
} ;
60
64
61
65
const handleUserInfoStyle = ( isLocalParticipant : boolean ) => {
62
- if ( isLocalParticipant ) return { color : '#0671E3' , alignSelf : 'center' } ;
63
- else return { color : 'white' } ;
66
+ if ( isLocalParticipant ) return { color : '#0671E3' , alignItems : 'center' } ;
67
+ else return { color : 'white' , alignItems : 'center' } ;
64
68
} ;
65
69
66
70
const ParticipantView = ( { participantId, isLocalParticipant } ) => {
@@ -101,17 +105,15 @@ const Videomeeting = (props): JSX.Element => {
101
105
< div
102
106
key = { participantId }
103
107
style = { {
104
- justifyContent : 'center' ,
105
- alignItems : 'center' ,
106
- display : 'column' ,
108
+ display : 'flex' ,
109
+ flexDirection : 'column' ,
110
+ // justifyContent: 'center',
111
+ // alignItems: 'center',
107
112
paddingLeft : '5px' ,
108
113
paddingRight : '5px'
109
114
} }
110
115
>
111
- < p style = { handleUserInfoStyle ( isLocalParticipant ) } >
112
- Participant: { isLocalParticipant ? 'You' : displayName } |
113
- Video: { webcamOn ? 'ON' : 'OFF' } | Mic: { micOn ? 'ON' : 'OFF' }
114
- </ p >
116
+
115
117
< audio ref = { micRef } autoPlay muted = { isLocal } />
116
118
{ ! webcamOn && < TurnOffCameraDisplay /> }
117
119
{ webcamOn && (
@@ -130,6 +132,10 @@ const Videomeeting = (props): JSX.Element => {
130
132
} }
131
133
/>
132
134
) }
135
+ < div style = { { ...handleUserInfoStyle ( isLocalParticipant ) , display : 'flex' , marginTop : '-50px' , marginLeft : '15px' } } >
136
+ < span > { displayName } </ span >
137
+ { webcamOn ? < VideocamIcon style = { { marginLeft : '14.5px' } } /> : < VideocamOffIcon style = { { marginLeft : '14.5px' } } /> } { micOn ? < MicIcon style = { { marginLeft : '10px' } } /> : < MicOffIcon style = { { marginLeft : '10px' } } /> }
138
+ </ div >
133
139
</ div >
134
140
</ >
135
141
) }
@@ -178,10 +184,11 @@ const Videomeeting = (props): JSX.Element => {
178
184
flexDirection : 'column' ,
179
185
justifyContent : 'center' ,
180
186
alignItems : 'center' ,
181
- width : '80 %' ,
187
+ width : '60 %' ,
182
188
height : '100%' ,
183
189
position : 'relative' ,
184
- overflow : 'auto'
190
+ overflow : 'auto' ,
191
+ paddingBottom : '68px'
185
192
} }
186
193
>
187
194
< div className = "video-scrollable" style = { { overflow : 'auto' } } >
0 commit comments