# Random remote participant video Failure in Zoom Video SDK

**URL:** <https://devforum.zoom.us/t/random-remote-participant-video-failure-in-zoom-video-sdk/122028>\
**Category:** Video SDK\
**Tags:** video-sdk\
**Created:** [December 6, 2024, 4:37am UTC](https://devforum.zoom.us/t/random-remote-participant-video-failure-in-zoom-video-sdk/122028 "2024-12-06T04:37:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anjithiruveedhi238](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@anjithiruveedhi238](https://devforum.zoom.us/u/anjithiruveedhi238)\
**Post date:** [December 6, 2024, 4:37am UTC](https://devforum.zoom.us/t/random-remote-participant-video-failure-in-zoom-video-sdk/122028/1 "2024-12-06T04:37:02Z")

</div>

Hi Team,

We are using the Zoom Video SDK for our video chat application, and we’ve encountered an issue during video calls. The problem occurs randomly: when I start a video call, the remote participant’s video does not appear on my end, although the other participant can see both videos. While I can see my own video, the remote participant’s video is missing on my screen.

This issue has occurred multiple times consecutively. Below are the session IDs of the affected calls for your reference:

1. **BqVmZIJZRUa5kHvSqHjBmw==**
2. **ohCv6CfES7OhbAZ37Q8l4A==**

Could you please investigate the cause of this video failure and suggest a solution at the earliest? This issue is significantly impacting our business operations, so a prompt resolution would be greatly appreciated.

Thank you in advance for your support.

---

<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 6, 2024, 5:07am UTC](https://devforum.zoom.us/t/random-remote-participant-video-failure-in-zoom-video-sdk/122028/2 "2024-12-06T05:07:55Z")

</div>

> [@anjithiruveedhi238](#):
>
> when I start a video call, the remote participant’s video does not appear on my end, although the other participant can see both videos. While I can see my own video, the remote participant’s video is missing on my screen.

Could you share some code snippets related to this issue?

By the way, from the session logs we found the Video SDK version is 1.11.10, could you upgrade the version and try it again?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![anjithiruveedhi238](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@anjithiruveedhi238](https://devforum.zoom.us/u/anjithiruveedhi238)\
**Post date:** [December 6, 2024, 6:29am UTC](https://devforum.zoom.us/t/random-remote-participant-video-failure-in-zoom-video-sdk/122028/3 "2024-12-06T06:29:20Z")

</div>

Hi @vic.yang ,  
Thank you for suggesting upgrading the SDK version. I will go ahead and update to the latest version.  
Regarding the code snippets, please find them below :

```auto
const connectVideoChat = async () => {
        await zmClient?.init('en-US', 'Global', { patchJsMedia: true, enforceMultipleVideos: true });
        try {
            await zmClient?.join(sessionName, zoomToken, userName).catch((e) => { 
        } catch (e: any) {
            console.log(e, 'e.reason while joining the zoom session ======================>');
        }
    }
const videoPlayerListRef = useRef<Record<string, VideoPlayer>>({});
const mediaStream = zmClient?.getMediaStream();
const attachment = videoPlayerListRef.current[`${userId}`];
mediaStream?.attachVideo(userId, VideoQuality.Video_720P, attachment);
<video-player-container class={`${(participants && participants.length) > 1 ? "video-container-wrap d-flex" : "video-container-wrap"} `}>
<div>
    {participants.length > 0 &&
        participants?.map((user: any) => {
            return (
                <>
                    {/* {user.bVideoOn ? "true" : "false"} */}
                    {user.bVideoOn ?
                        <div className='w-100'>
                            <video-player
                                key={user.userGuid}
                                style={user.bVideoOn ? { "aspectRatio": "16/9" } : { "background": "black", "aspectRatio": "1/1" }}
                                className='video-player'
                                ref={(element) => {
                                    setVideoPlayerRef(user.userId, element);
                                }}
                                node-id={user.userId}
                            />
                        </div>
                        : <div className='agent-video-wrapper'><i className="bi bi-camera-video-off" style={{ "color": "white" }}></i></div>
                    }
                </>
            );
        })
</div>                         
</video-player-container>

<video-player-container class="video-container-wrap">
                                        <div className="ml-auto Participant-video-frame">
                                            {zoomLocalParticipant?.map((user: any) => {
                                                return (
                                                    <div
                                                        className="video-cell localParticipantVideoClass video-thumbnail player-mute-icon"
                                                        key={user.userId}
                                                        style={user.bVideoOn ? { "aspectRatio": "16/9" } : { "background": "#6b6e76", "aspectRatio": "16/9" }}
                                                    >
                                                        {user.bVideoOn ?
                                                            <div key={user.userGuid} className='player-icons'>
                                                                <video-player
                                                                    class="video-player localParticipantVideoCard"
                                                                    ref={(element) => {
                                                                        setVideoPlayerRef(user.userId, element);
                                                                    }}
                                                                />
                                                                <span className='position-relative'>{audioDisable ? <i className="bi bi-mic-mute mute-icon"></i> : <></>} </span>
                                                            </div>

                                                            : <i className="bi bi-camera-video-off" style={{ "color": "white" }}></i>
                                                        }
                                                    </div>
                                                );
                                            })}
                                        </div>
                                    </video-player-container>

```

Thanks again for your prompt response and assistance.

---

<div class="post-metadata">

**Author:** ![anjithiruveedhi238](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@anjithiruveedhi238](https://devforum.zoom.us/u/anjithiruveedhi238)\
**Post date:** [December 9, 2024, 9:12am UTC](https://devforum.zoom.us/t/random-remote-participant-video-failure-in-zoom-video-sdk/122028/4 "2024-12-09T09:12:56Z")

</div>

Hi @vic.yang ,  
I hope you’re doing well. I’m following up on the “Random Remote Participant Video Failure” issue. I trust you’ve had a chance to review the code snippets and details I shared a couple of days ago.

Could you please provide an update on the status of my request? Additionally, let me know if there’s any further information needed from my side.

On a related note, in cases where a participant’s video doesn’t appear, could you recommend any specific event or property from Zoom that we can use as a reliable indicator? This would allow us to implement a retry logic within our functionality based on that value.

Looking forward to your response.

---

<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 9, 2024, 10:00am UTC](https://devforum.zoom.us/t/random-remote-participant-video-failure-in-zoom-video-sdk/122028/5 "2024-12-09T10:00:48Z")

</div>

Hey @anjithiruveedhi238

I noticed in the code that there are two user-related lists:

- `participants`
- `zoomLocalParticipant`.

What is the difference between these two? The users in these two lists should not overlap, as they are rendered in separate `video-player-container` containers.

Additionally, it is not recommended to manually set the `node-id` attribute on the `video-player` element; it needs to be updated through the `attachVideo`/`detachVideo` methods.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![anjithiruveedhi238](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@anjithiruveedhi238](https://devforum.zoom.us/u/anjithiruveedhi238)\
**Post date:** [December 9, 2024, 11:03am UTC](https://devforum.zoom.us/t/random-remote-participant-video-failure-in-zoom-video-sdk/122028/6 "2024-12-09T11:03:34Z")

</div>

Hi @vic.yang,

Thank you for your response.

Regarding the two user-related lists:

- **`participants`** refers to remote participants.
- **`zoomLocalParticipant`** refers to the local user (self).

The videos for these two lists do not overlap. We’ve implemented styling to display the local video as a smaller overlay, while the remote participant’s video is shown as the larger main view. For clarity, I’ve attached a screenshot below for your reference.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/7/f73f36bf351242316c1f2a0b4fd8b8a4ea166bdb.jpeg)  
Regarding the **node-id** , we are updating it using the `attachVideo` and `detachVideo` methods as recommended and we will change the code as you suggested. Below is the relevant portion of the code for your reference:  
Below I’m providing the code for your reference.

```auto
try {
            const addedUsers = subscribers.filter((user) => !(previousSubscribers || []).includes(user));
            const removedUsers = (previousSubscribers || []).filter((user: any) => !subscribers.includes(user));
            if (removedUsers.length > 0) {
                removedUsers.forEach((userId: any) => {
                    mediaStream?.detachVideo(userId);
                });
            }
            if (addedUsers.length > 0) {
                addedUsers.forEach((userId) => {
                    const attachment = videoPlayerListRef.current[`${userId}`];
                    if (attachment) {
                        mediaStream?.attachVideo(userId, VideoQuality.Video_720P, attachment);
                    }
                });
            }
        }

```

Could you let us know if you’ve identified any possible reasons for the video display failure during the two calls I mentioned earlier?  
“On a related note, for cases where a participant’s video doesn’t appear, could you suggest any specific event or property from Zoom that we can use as a reliable indicator? This would allow us to implement a retry logic within our functionality.”

Looking forward to your insights and any updates on this.

---

<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, 2024, 2:11am UTC](https://devforum.zoom.us/t/random-remote-participant-video-failure-in-zoom-video-sdk/122028/7 "2024-12-11T02:11:44Z")

</div>

Hey @anjithiruveedhi238

> On a related note, for cases where a participant’s video doesn’t appear, could you suggest any specific event or property from Zoom that we can use as a reliable indicator?

Yes.

We have multiple events to handle the issue.

- For remote video black screen cases, you can call `stream.subscribeVideoStatisticData({detailed: true})` and then listen to the `video-detailed-data-change` event. This will allow you to retrieve the resolution and FPS of each remote video. In black screen cases, both FPS and resolution will be 0.

> **[Zoom Video SDK for Web - 1.12.14](https://marketplacefront.zoom.us/sdk/custom/web/modules.html#event_video_cell_detailed_change)**
>
> Documentation for Zoom Video SDK for Web - 1.12.14

- For self-video issues, you can listen to the `active-media-failed` event, which notifies you of abnormalities in the current stream. In future versions, we will optimize this event to provide more detailed information in the event payload.

> **[Zoom Video SDK for Web - 1.12.14](https://marketplacefront.zoom.us/sdk/custom/web/modules.html#event_active_media_failed)**
>
> Documentation for Zoom Video SDK for Web - 1.12.14

Thanks  
Vic
