Explorar el Código

env AGORA_MODE

Vijayakrishnan hace 4 años
padre
commit
69dc74a8cf
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      resources/views/app/video/call.blade.php

+ 3 - 1
resources/views/app/video/call.blade.php

@@ -196,7 +196,9 @@
                             }
 
                             // testing
-                            try { camera = await AgoraRTC.createScreenVideoTrack() } catch { }
+                            @if(env('AGORA_MODE') === 'screen')
+                                try { camera = await AgoraRTC.createScreenVideoTrack() } catch { }
+                            @endif
 
                             if (!mic && !camera){
                                 alert('Do you have camera/mic? Unable to hear or see you.')