AgoraIO-Community / VideoUIKit-Web-React

A Web library to simply integrate Agora Video Calling or Live Video Streaming to your website with just a few lines of code.
MIT License
50 stars 40 forks source link

camera light remain on when user leaves video call and how to use pre call settings in video call #37

Closed Aoun2686 closed 10 months ago

Aoun2686 commented 1 year ago

any idea how to turn off camera when user leaves? my camera light remains on until i dont refresh the page. also, how can i pass initial settings for audio and video? i have a preparing screen where user choses to turn their camera on or off and for mic as well. i need to reflect those settings in video call.

MetaSeth commented 1 week ago

Apparently it's because of React.StrictMode who open 2 instance. And when leaving only one is left ...