# Video element blinking (while video subscribing)

**URL:** <https://devforum.zoom.us/t/video-element-blinking-while-video-subscribing/50896>\
**Category:** macOS\
**Created:** [May 24, 2021, 1:17pm UTC](https://devforum.zoom.us/t/video-element-blinking-while-video-subscribing/50896 "2021-05-24T13:17:06Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [May 24, 2021, 1:17pm UTC](https://devforum.zoom.us/t/video-element-blinking-while-video-subscribing/50896/1 "2021-05-24T13:17:07Z")

</div>

Hi!

I have noticed that video element blinks every time when `subscribeVideo(_)` is called.

[There is a video example of blinking.](https://drive.google.com/file/d/1IgI_SKU2h8qU2k-XOpRbcxx284R98l91/view?usp=sharing)

How can we avoid this blinking?

Thank you!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [May 24, 2021, 10:38pm UTC](https://devforum.zoom.us/t/video-element-blinking-while-video-subscribing/50896/2 "2021-05-24T22:38:46Z")

</div>

Hi @anton.yereshchenko, thanks for the post.

I think what’s happening here is a side effect of the asynchronous nature of subscribing to a user’s video. When you call `subscribeVideo`, before a single frame can be displayed in the video element, the SDK must first open a connection through which it can receive video and audio data. Until this happens, it displays a black screen, which is the default state of the element.

Please let me know if you have any questions or concerns with this behavior and we can look into this further.

Thanks!

---

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [May 26, 2021, 9:15am UTC](https://devforum.zoom.us/t/video-element-blinking-while-video-subscribing/50896/3 "2021-05-26T09:15:30Z")

</div>

Hi @jon.zoom thank you for your replay.

Can we avoid this behaviour now? If we can’t, how do you think it would be possible to add the feature request where let’s say for example will be the option for video element that will freeze the image on the subscribing video step instead of grey screen displaying.

Thanks!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [May 26, 2021, 9:52pm UTC](https://devforum.zoom.us/t/video-element-blinking-while-video-subscribing/50896/4 "2021-05-26T21:52:37Z")

</div>

Hi @anton.yereshchenko,

I don’t think it would be possible to avoid this behavior. It might be possible for us to investigate optimizing this internally in the SDK, but due to the small impact it might not be something that could be added to the SDK for a long time.

That being said, if you could provide a little bit of context around your use case/concerns here, I can definitely get the process started for looking into this in the future.

Thanks!

---

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [May 27, 2021, 3:01pm UTC](https://devforum.zoom.us/t/video-element-blinking-while-video-subscribing/50896/5 "2021-05-27T15:01:26Z")

</div>

Hi @jon.zoom,

As far as we need to display a lot of number of cameras in one time, and to prevent the error with the number 6 we have decided to create cameras with smallest size and resize when it’s realy necessary.  
But after camera resizing it’s neccessery to call `subscribeVideo` method to make the camera quality better.  
And exectly every time after `subscribeVideo` method is called we see the blinking.

Thank you!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [May 27, 2021, 6:50pm UTC](https://devforum.zoom.us/t/video-element-blinking-while-video-subscribing/50896/6 "2021-05-27T18:50:18Z")

</div>

Hi @anton.yereshchenko,

Thanks for the additional context! Would you agree that a better solution for your use case would be to no longer require a re-subscription after resizing, instead having a seamless transition to the newly sized element? (Disclaimer: we would need to investigate whether this is possible)

Thanks!

---

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [May 28, 2021, 12:43pm UTC](https://devforum.zoom.us/t/video-element-blinking-while-video-subscribing/50896/7 "2021-05-28T12:43:44Z")

</div>

Hi @jon.zoom ,

Thank you for clarifying! A better solution for me would be to get expected (good) video quality after resizing, because now if I don’t make subscribing after resizing I wouldn’t get a good video quality.

To be on the same page I have an image that illustrate those situations:

 ![Frame 26-2](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/6/5640139e57f02f51deb9d1c49aad8d548f7982e8.jpeg)

So quality increasing is the main case why I call subscribe method after resizing.

And exactly after subscribe method calling I get video element blinking. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [May 28, 2021, 5:53pm UTC](https://devforum.zoom.us/t/video-element-blinking-while-video-subscribing/50896/8 "2021-05-28T17:53:10Z")

</div>

Hi @anton.yereshchenko,

Thank you for the feedback. I will submit a feature request for this and let you know as soon as we have any updates.

Thanks!

---

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [May 31, 2021, 1:34pm UTC](https://devforum.zoom.us/t/video-element-blinking-while-video-subscribing/50896/9 "2021-05-31T13:34:04Z")

</div>

hi @jon.zoom ,

Thank you!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [June 1, 2021, 6:58pm UTC](https://devforum.zoom.us/t/video-element-blinking-while-video-subscribing/50896/10 "2021-06-01T18:58:05Z")

</div>

You are very welcome!

Conveniently enough, it looks like we may already have a feature planned to help with this in the next release. I am working on confirming whether or not this will meet your needs.

Thanks!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [June 2, 2021, 4:59pm UTC](https://devforum.zoom.us/t/video-element-blinking-while-video-subscribing/50896/11 "2021-06-02T16:59:02Z")

</div>

Hi @anton.yereshchenko,

I was able to confirm that this should be resolved in the next release. The method calls for doing this will be slightly different than the current flow, so let me know if you run into any issues when the release is available. Release timeline is a little uncertain right now, but keep an eye out in the next couple of weeks. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [June 3, 2021, 9:27am UTC](https://devforum.zoom.us/t/video-element-blinking-while-video-subscribing/50896/12 "2021-06-03T09:27:38Z")

</div>

Hi @jon.zoom!  
you made my day, as always, thank you, it’s a great news.

waiting for the new release 🤞

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [June 3, 2021, 5:54pm UTC](https://devforum.zoom.us/t/video-element-blinking-while-video-subscribing/50896/13 "2021-06-03T17:54:24Z")

</div>

You’re welcome, glad we were able to help!

---

<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:** [July 4, 2021, 3:54am UTC](https://devforum.zoom.us/t/video-element-blinking-while-video-subscribing/50896/14 "2021-07-04T03:54:48Z")

</div>

Closed on July 4, 2021, 3:54am UTC

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