# The red camera icon in chrome browser is not disappearing even after calling destroyClient API

**URL:** <https://devforum.zoom.us/t/the-red-camera-icon-in-chrome-browser-is-not-disappearing-even-after-calling-destroyclient-api/75325>\
**Category:** Web\
**Created:** [September 2, 2022, 8:32am UTC](https://devforum.zoom.us/t/the-red-camera-icon-in-chrome-browser-is-not-disappearing-even-after-calling-destroyclient-api/75325 "2022-09-02T08:32:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![kvr](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kvr](https://devforum.zoom.us/u/kvr)\
**Post date:** [September 2, 2022, 8:32am UTC](https://devforum.zoom.us/t/the-red-camera-icon-in-chrome-browser-is-not-disappearing-even-after-calling-destroyclient-api/75325/1 "2022-09-02T08:32:51Z")

</div>

**Description**  
The red camera icon displayed in chrome browser tab is not disappearing even after calling destroyClient API

**Which Web Video SDK version?**  
Video SDK Web 1.3.0

Steps to reproduce the behavior:

1. Go to zoom screen
2. Navigate to some other screen. destroyClient API is called before navigating to another screen.

Screenshot  
 ![Untitled2](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/c/1c3066a9464ebba8039ed3c8f527cd96c2b82743.png)

- Device: [e.g. Desktop]
- OS: [e.g. Windows]
- Browser: [e.g. Chrome]
- Browser Version 105.0.5195.53 (Official Build) (64-bit)

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [September 5, 2022, 1:45am UTC](https://devforum.zoom.us/t/the-red-camera-icon-in-chrome-browser-is-not-disappearing-even-after-calling-destroyclient-api/75325/2 "2022-09-05T01:45:10Z")

</div>

Hey @kvr

Was the camera still working after calling the `destroyClient` method?  
If convenient, could you share the code snippet about this issue?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![kvr](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kvr](https://devforum.zoom.us/u/kvr)\
**Post date:** [September 5, 2022, 6:03pm UTC](https://devforum.zoom.us/t/the-red-camera-icon-in-chrome-browser-is-not-disappearing-even-after-calling-destroyclient-api/75325/3 "2022-09-05T18:03:55Z")

</div>

Hi Vic,

```
  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.

```
    if(typeof WebVideoSDK !== 'undefined'){
        WebVideoSDK.default.destroyClient();
    }

```

Please let me know if you need more information.

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [September 6, 2022, 2:54am UTC](https://devforum.zoom.us/t/the-red-camera-icon-in-chrome-browser-is-not-disappearing-even-after-calling-destroyclient-api/75325/4 "2022-09-06T02:54:57Z")

</div>

Hey @kvr

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:

```nohighlight
<!DOCTYPE html>
<html>
<head>
... 
<script src="[link to Video SDK Web entry]"></script>
</head>
...

</html>

```

```javascript
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  
Vic

---

<div class="post-metadata">

**Author:** ![kvr](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kvr](https://devforum.zoom.us/u/kvr)\
**Post date:** [September 6, 2022, 10:24am UTC](https://devforum.zoom.us/t/the-red-camera-icon-in-chrome-browser-is-not-disappearing-even-after-calling-destroyclient-api/75325/5 "2022-09-06T10:24:16Z")

</div>

Hi Vic,

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

client = WebVideoSDK.default.createClient();

Thanks  
Krishnan

---

<div class="post-metadata">

**Author:** ![kvr](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kvr](https://devforum.zoom.us/u/kvr)\
**Post date:** [September 9, 2022, 3:59pm UTC](https://devforum.zoom.us/t/the-red-camera-icon-in-chrome-browser-is-not-disappearing-even-after-calling-destroyclient-api/75325/6 "2022-09-09T15:59:34Z")

</div>

Hi Vic,

Is there any solution for this issue?

Thanks  
Krishnan

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [September 13, 2022, 1:38am UTC](https://devforum.zoom.us/t/the-red-camera-icon-in-chrome-browser-is-not-disappearing-even-after-calling-destroyclient-api/75325/7 "2022-09-13T01:38:25Z")

</div>

Hey @kvr

I have tested it on my device, but cannot reproduce it. Could you please provide the code snippet for using the VideoSDK, from creating to destroying?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![kvr](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kvr](https://devforum.zoom.us/u/kvr)\
**Post date:** [September 13, 2022, 2:05pm UTC](https://devforum.zoom.us/t/the-red-camera-icon-in-chrome-browser-is-not-disappearing-even-after-calling-destroyclient-api/75325/8 "2022-09-13T14:05:14Z")

</div>

Hi Vic,

```
   Please find the below code snippet. We are loading the index.umd.js at runtime in the **Vuejs** component.

```

client = WebVideoSDK.default.createClient();

//creating the mediastream from the client

audioTrack = WebVideoSDK.default.createLocalAudioTrack();  
videoTrack = WebVideoSDK.default.createLocalVideoTrack();

client.init(‘en-US’, ‘Global’);

//On connection-change change to “connected”  
mediaStream = client.getMediaStream();

//When the Vuejs component is destroyed  
if(typeof WebVideoSDK !== ‘undefined’){  
WebVideoSDK.default.destroyClient();  
}

Pls let me know if you need more information  
Thanks  
Krishnan

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [September 14, 2022, 1:30am UTC](https://devforum.zoom.us/t/the-red-camera-icon-in-chrome-browser-is-not-disappearing-even-after-calling-destroyclient-api/75325/9 "2022-09-14T01:30:01Z")

</div>

Hey @kvr

I saw you created a ‘videoTrack’, did you intend to use it to preview the video before joining the session?

If you used it as follows:

```javascript
videoTrack.start(videoElement);

```

Please make sure to call `videoTrack.stop()` before leaving session or destroying the component.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [October 14, 2022, 11:30am UTC](https://devforum.zoom.us/t/the-red-camera-icon-in-chrome-browser-is-not-disappearing-even-after-calling-destroyclient-api/75325/10 "2022-10-14T11:30:08Z")

</div>

Closed on October 14, 2022, 11:30am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
