Hi @Alexandre Gurgel you are on the right track. If you want to disable your camera so that other participants can’t see you, you should be able to do so by stopping your local video stream.
You need to use LocalVideoStream and not videoLocalMediaStream. Please read this ACS documentation for more details
Here’s how you can do it:
// Assuming `call` is your Call object and `localVideoStream` is your LocalVideoStream object
// To stop sending your video stream
await call.stopVideo(localVideoStream);
// To start sending your video stream again
await call.startVideo(localVideoStream);
Please make sure that localVideoStream
is correctly initialized and the call is established before you try to stop or start the video. If you’re still facing issues, there might be a problem with the setup of the Call
or LocalVideoStream
objects, or there might be a problem with the permissions for the camera.
Hope that helps.
Best,
Grace