# Webcam image gets corrupted after fixed delay (+/- 15 secs)

**URL:** <https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736>\
**Category:** Web\
**Created:** [December 7, 2023, 2:37pm UTC](https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736 "2023-12-07T14:37:02Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![fides-it](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fides-it/32/51395_2.png) [@fides-it](https://devforum.zoom.us/u/fides-it)\
**Post date:** [December 7, 2023, 2:37pm UTC](https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736/1 "2023-12-07T14:37:02Z")

</div>

Browser : Chrome  
OS: Windows

For about 15 - 20 seconds my webcam stream renders normally (quality 360p), but then suddenly the video is garbled / starts flickering. What could cause that? I’m using the webcam in the Teams, Zoom client etc and there it works fine

Edit: it happens on a video-dimension-change event

the webcam starts out sending 640x360 but then switches to 1280x720.

I also noticed there’s a duplicate video-dimension-change event being sent

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [December 7, 2023, 4:13pm UTC](https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736/2 "2023-12-07T16:13:22Z")

</div>

Hi @fides-it ,

To make sure I understand your concern correctly, you’ve added in a video-dimension-change event and when that fires, your camera is flickering. Is that correct? If so, does the flickering stop after a certain amount of time, or persist?  
Additionally, what version of the Video SDK for Windows are you using?  
Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![fides-it](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fides-it/32/51395_2.png) [@fides-it](https://devforum.zoom.us/u/fides-it)\
**Post date:** [December 7, 2023, 4:32pm UTC](https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736/3 "2023-12-07T16:32:00Z")

</div>

the `video-dimension-change` is triggered by the Zoom client. I don’t do anything with that event, except log it. I get two of these events simultaneously

the flickering is persistent from the time it starts. I’ve tried stopping/restarting the video rendering with an higher quality (720) but that was rejected by the Zoom stream

I’m using @zoom1234/videosdk version 1.9.8

---

<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:** [December 8, 2023, 1:54am UTC](https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736/4 "2023-12-08T01:54:53Z")

</div>

Hey @fides-it

Can you provide a recording of the issue or report logs to us through client telemetry when the issue occurs?

> **[Video SDK - web - Service quality](https://developers.zoom.us/docs/video-sdk/web/quality/#report-issues-to-zoom)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

---

<div class="post-metadata">

**Author:** ![fides-it](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fides-it/32/51395_2.png) [@fides-it](https://devforum.zoom.us/u/fides-it)\
**Post date:** [December 8, 2023, 5:46am UTC](https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736/5 "2023-12-08T05:46:41Z")

</div>

I generated a report with telemetry tracking id 3ca89cfd-4f99-4e01-89b4-1772ade23a93

---

<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:** [December 8, 2023, 6:24am UTC](https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736/6 "2023-12-08T06:24:56Z")

</div>

Hey @fides-it  
Thank you for your assistance.

We couldn’t find relevant logs.

Could you please confirm if you have called the `clientSideTelemetry.reportToGlobalTracing()` method?

> **[Video SDK - web - Service quality](https://developers.zoom.us/docs/video-sdk/web/quality/#report-issues-to-zoom)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![fides-it](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fides-it/32/51395_2.png) [@fides-it](https://devforum.zoom.us/u/fides-it)\
**Post date:** [December 8, 2023, 7:37am UTC](https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736/7 "2023-12-08T07:37:15Z")

</div>

I didn’t create the LoggerClient before joining, but after, which I just fixed and did a retry. Now it should be ok: b511096e-c094-4633-939e-e1c5439b4557

---

<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:** [December 8, 2023, 8:19am UTC](https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736/8 "2023-12-08T08:19:17Z")

</div>

Hey @fides-it

I’m sorry, but we still couldn’t find relevant logs.

1. Set tracking ID in JWT token
2. Get the telemetry client

```javascript
const clientSideTelemetry = client.getLoggerClient();

```

3. Send the logs after the issue occurs.

```javascript
clientSideTelemetry.reportToGlobalTracing();

```

Or could you share the session ID for the problematic session with us?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![fides-it](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fides-it/32/51395_2.png) [@fides-it](https://devforum.zoom.us/u/fides-it)\
**Post date:** [December 8, 2023, 11:25am UTC](https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736/9 "2023-12-08T11:25:34Z")

</div>

I made mistake on the JWT token generation part… I reproduced it again, the info is:

session : LgnEehI9RmC6KR+4Ehkw1g==  
tracing id : 665c3c0a-51fb-402a-9146-4d94ebff1727

sorry for the inconvenience

---

<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:** [December 11, 2023, 4:23am UTC](https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736/10 "2023-12-11T04:23:11Z")

</div>

Hey @fides-it

Thank you for your assistance.

We have been able to see the relevant logs, but would like to confirm with you.

The session lasted for approximately **4 minutes,** and the resolution change occurred around **30 seconds** later. However, the logs we received only contain data from the **first 5 seconds** after the session started.

Did you call the `clientSideTelemetry.reportToGlobalTracing()` method too early, rather than waiting until the issue occurred? If so, we might not see the relevant logs when the issue happens.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![fides-it](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fides-it/32/51395_2.png) [@fides-it](https://devforum.zoom.us/u/fides-it)\
**Post date:** [December 11, 2023, 5:53am UTC](https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736/11 "2023-12-11T05:53:39Z")

</div>

Hey Vic,

Hmm interesting… I definitely called `clientSideTelemetry.reportToGlobalTracing()` after the issue occurred, but here’s what I did:

- create clientSideTelemetry client
- create JWT token
- join session
- have another participant join
- wait until video-dimension-change event with height = 720. The issue occurs when switching from 480p to 720p
- trigger `clientSideTelemetry.reportToGlobalTracing()` **with a delay of 5 seconds**

I checked in the logs that the call to `reportToGlobalTracing` was made 5 seconds after the issue occurred. I’m not sure if the 5 seconds delay (with setTimeout()) somehow resets the recording of logs? I will try it again without the delay

---

<div class="post-metadata">

**Author:** ![fides-it](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fides-it/32/51395_2.png) [@fides-it](https://devforum.zoom.us/u/fides-it)\
**Post date:** [December 11, 2023, 6:07am UTC](https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736/12 "2023-12-11T06:07:40Z")

</div>

Here’s a new attempt without delay:

FDm/7BgpR7+cJF8jr9UJWA==  
befaf5ec-5d27-41ef-8af7-fa47ddc2d0a0

---

<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:** [December 11, 2023, 6:29am UTC](https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736/13 "2023-12-11T06:29:57Z")

</div>

Hey @fides-it

Thank you for your support.

Can you call the `clientSideTelemetry.reportToGlobalTracing()` method when leaving the session? This approach would provide more comprehensive logs compared to the current ones, which have a limited duration.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![fides-it](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fides-it/32/51395_2.png) [@fides-it](https://devforum.zoom.us/u/fides-it)\
**Post date:** [December 11, 2023, 7:29am UTC](https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736/14 "2023-12-11T07:29:04Z")

</div>

Good idea, I just did that, here’s the new session ID + tracking ID:

ncI+HpopQfaUekmr1v7Gvg==  
73942096-e352-45c4-8392-62f98fe45e03

---

<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:** [December 11, 2023, 7:49am UTC](https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736/15 "2023-12-11T07:49:47Z")

</div>

Hey @fides-it

Thanks for your support.

You mentioned video flickering and garbled. Could you record a video or take a screenshot for us to see?

Currently, from the logs reported, we cannot identify any obvious issues. Also, is the video of the problematic user normal for other participants in the same session?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![fides-it](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fides-it/32/51395_2.png) [@fides-it](https://devforum.zoom.us/u/fides-it)\
**Post date:** [December 11, 2023, 8:21am UTC](https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736/16 "2023-12-11T08:21:15Z")

</div>

Here it is: [https://www.youtube.com/watch?v=0xMswOhwzOc](https://www.youtube.com/watch?v=0xMswOhwzOc)

---

<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:** [December 11, 2023, 9:18am UTC](https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736/17 "2023-12-11T09:18:36Z")

</div>

Hey @fides-it

This is very interesting! We are also encountering this issue for the first time.

We are trying to analyze the logs and reproduce the issue.

I will keep you updated on any developments.

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:** [January 10, 2024, 7:18pm UTC](https://devforum.zoom.us/t/webcam-image-gets-corrupted-after-fixed-delay-15-secs/99736/18 "2024-01-10T19:18:58Z")

</div>

Closed on January 10, 2024, 7:18pm UTC

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