The camera light is still ON after calling the destroyClient method. We tried with video SDK web version 1.3.9 and 1.4.1. The behavior is the same. We are showing a different screen after calling the destroyClient API. So, Not sure if the camera is still working.
Our web application is loading the index.umd.js and calling the Video SDK apis.
I test it on my device, and it works. I saw you were using the Video SDK by UMD, have you mixed the use of UMD and ESM? Such as the following example:
<!DOCTYPE html>
<html>
<head>
...
<script src="[link to Video SDK Web entry]"></script>
</head>
...
</html>
import ZoomVideo from '@zoom/videosdk';
let client = ZoomVideo.createClient();
/** some preparations for using the SDK */
...
stream.startVideo();
/** destroy the client,using the UMD instance */
if(typeof WebVideoSDK !== 'undefined'){
WebVideoSDK.default.destroyClient();
}
Thanks for the response. We are not importing the videosdk module. We are only using “WebVideoSDK” for getting the client instance and mediastream instance. The version number of video SDK mentioned in the previous post is incorrect. We tried with video SDK web version 1.3.0 and 1.4.1