AgoraIO-Community / VideoUIKit-ReactNative

A React Native package to simply integrate Agora Video Calling or Live Video Streaming to your app with just a few lines of code.
MIT License
93 stars 43 forks source link

Added default video and audio modes for RTC #136

Open thvardhan opened 1 year ago

thvardhan commented 1 year ago

I've added default modes to enable and disable video and audio. This can be controlled by rtc settings props. Usage :

<AgoraUIKit settings={{
            defaultVideo:false,
            defaultAudio:true
        }} connectionData={connectionData} rtcCallbacks={rtcCallbacks} />

This will enable audio while disabling video when the user first joins. they can then click on the control buttons and enable video if required