# Active Speaker Video Not Updating when speaker changes

**URL:** <https://devforum.zoom.us/t/active-speaker-video-not-updating-when-speaker-changes/61431>\
**Category:** macOS\
**Created:** [December 14, 2021, 12:08pm UTC](https://devforum.zoom.us/t/active-speaker-video-not-updating-when-speaker-changes/61431 "2021-12-14T12:08:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![niravd](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@niravd](https://devforum.zoom.us/u/niravd)\
**Post date:** [December 14, 2021, 12:08pm UTC](https://devforum.zoom.us/t/active-speaker-video-not-updating-when-speaker-changes/61431/1 "2021-12-14T12:08:19Z")

</div>

Hi,

Active Speaker Video Not Updating when speaker changes it freezes with the previous speaker last visible frame and refreshes when the same speaker starts to speak again.

Let me know if there is any change in code

```auto
func initActiveVideoUserView() {
       
        if (_activeUserVideo == nil) {
            _activeUserVideo = ZoomSDKActiveVideoElement.init(frame: viewSpeakerVideo.frame)
            let videoContainer = ZoomSDK.shared().getMeetingService().getVideoContainer()
            videoContainer?.createVideoElement(AutoreleasingUnsafeMutablePointer<ZoomSDKVideoElement?>(&_activeUserVideo))
            _ = _activeUserVideo?.resize(NSRect(x: 0, y: 0, width: viewSpeakerVideo.frame.width, height: viewSpeakerVideo.frame.height))
            viewSpeakerVideo.addSubview(_activeUserVideo!.getVideoView())
            _activeUserVideo?.startActiveView(true)
        }
        
    }

```

---

<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:** [December 14, 2021, 11:14pm UTC](https://devforum.zoom.us/t/active-speaker-video-not-updating-when-speaker-changes/61431/2 "2021-12-14T23:14:22Z")

</div>

Hi @niravd, thanks for the post.

Sorry to hear you’re running into issues with speaker view through custom UI. Can you please let me know which version of the SDK you are using and provide a video of the behavior you are seeing so that we can investigate this further?

Thanks!

---

<div class="post-metadata">

**Author:** ![niravd](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@niravd](https://devforum.zoom.us/u/niravd)\
**Post date:** [December 16, 2021, 5:44am UTC](https://devforum.zoom.us/t/active-speaker-video-not-updating-when-speaker-changes/61431/3 "2021-12-16T05:44:08Z")

</div>

Hi this is the SDK version v5.5.12511.0420

Attaching is the video of the behaviour

> **[Final Freeze Issue Zoom SDK.mp4 (video)](https://drive.google.com/file/d/1QH7CJIaUoM5RZHcAK5u08-So0fpb1Yaf/view?usp=sharing)**
>
> Google Drive file.

Kindly let me know the suitable solutions.

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:** [December 16, 2021, 8:30pm UTC](https://devforum.zoom.us/t/active-speaker-video-not-updating-when-speaker-changes/61431/4 "2021-12-16T20:30:30Z")

</div>

Hi @niravd,

I noticed that there were other video views present next to the active speaker view. It is possible that there is a bandwidth limit being hit, which only takes effect when the active speaker view attempts to change subscriptions. To confirm that this is what’s happening for you, can you check whether or not removing the individual videos changes the behavior you’ve observed at all? So to test, you would only have the active speaker element visible.

Thanks!

---

<div class="post-metadata">

**Author:** ![niravd](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@niravd](https://devforum.zoom.us/u/niravd)\
**Post date:** [December 17, 2021, 7:22am UTC](https://devforum.zoom.us/t/active-speaker-video-not-updating-when-speaker-changes/61431/5 "2021-12-17T07:22:04Z")

</div>

Hi @jon.zoom thank you for your response, in video 00:00 to 00:41 only Active Speaker Views Video Is ON remaining video views next to active speaker view their videos are OFF.

The freeze of the Active Speaker View starts at 00:25.

Does this clarify the test scenario you mentioned above?  
Request you to let me know if I am missing anything here from the above mentioned test scenario or want me to run any other test.

Regards,  
Nirav Desai

---

<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:** [December 17, 2021, 9:00pm UTC](https://devforum.zoom.us/t/active-speaker-video-not-updating-when-speaker-changes/61431/6 "2021-12-17T21:00:02Z")

</div>

Hi @niravd,

Thanks for the additional context. For the behavior I am describing, you would need to test without any other active video subscriptions (i.e. the only other video element that could be present is your local video preview). Let me know if you are able to reproduce under these circumstances so that we can continue investigating.

Thanks!

---

<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 17, 2022, 7:00am UTC](https://devforum.zoom.us/t/active-speaker-video-not-updating-when-speaker-changes/61431/7 "2022-01-17T07:00:36Z")

</div>

Closed on January 17, 2022, 7:00am UTC

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