@@ -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.')