Explorar o código

env AGORA_MODE

Vijayakrishnan %!s(int64=4) %!d(string=hai) anos
pai
achega
69dc74a8cf
Modificáronse 1 ficheiros con 3 adicións e 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.')