Video SDK Type and Version
For Web (React): “@zoom1234/videosdk”: “^1.5.5”
Description
I need to give the user the opportunity to switch the camera on and off during the session. In the documentation I found such methods: startVideo(), stopVideo(). Perhaps there are more suitable methods for the implementation of such a functionality to make process faster/smoother?
How To Reproduce
During the session, the user presses the appropriate button and the camera is switched off. When he press the button again, the camera turns on.
Thanks for your question! To make sure I understand clearly, you’re looking for a different way to start/stop video, other than the mentioned methods? If so, is the reason that the starting/stopping is delayed for you?
Yeah there is some delay but not critical. I was just wondering if there are some other methods that will fit my logic better. Maybe there is something that can turn camera on/off without creating a video stream instance
Got it, thanks for clarifying. At this time, these are the only methods available for that functionality. The only other option I can think of is using some CSS to hide the video, instead of turning it off, based on a button click. While I can’t guarantee it, that might achieve your goal in a way that better suits your needs.