File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
frontend/src/app/collaboration/components Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ const VideoCall = ({ provider }: VideoCallProps) => {
175
175
} ;
176
176
177
177
const startCall = async ( ) => {
178
+ console . log ( "starting call" ) ;
178
179
setVideoStart ( true ) ;
179
180
console . log ( peerConnectionRef . current ) ;
180
181
if ( peerConnectionRef . current ) {
@@ -204,6 +205,11 @@ const VideoCall = ({ provider }: VideoCallProps) => {
204
205
}
205
206
} ;
206
207
208
+ const callButton = async ( ) => {
209
+ console . log ( "button pressed" ) ;
210
+ await startCall ( ) ;
211
+ } ;
212
+
207
213
useEffect ( ( ) => {
208
214
const awarenessListener = ( {
209
215
added,
@@ -355,7 +361,7 @@ const VideoCall = ({ provider }: VideoCallProps) => {
355
361
</ div >
356
362
</ div >
357
363
{ ! videoStart && (
358
- < Button onClick = { startCall } className = "self-end ml-4" >
364
+ < Button onClick = { callButton } className = "self-end ml-4" >
359
365
Start Video Call
360
366
</ Button >
361
367
) }
You can’t perform that action at this time.
0 commit comments