# Initial video fails to load, but refreshing once will trigger video stream

**URL:** <https://devforum.zoom.us/t/initial-video-fails-to-load-but-refreshing-once-will-trigger-video-stream/119373>\
**Category:** Video SDK\
**Created:** [October 17, 2024, 8:41pm UTC](https://devforum.zoom.us/t/initial-video-fails-to-load-but-refreshing-once-will-trigger-video-stream/119373 "2024-10-17T20:41:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cat.lee](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@cat.lee](https://devforum.zoom.us/u/cat.lee)\
**Post date:** [October 17, 2024, 8:41pm UTC](https://devforum.zoom.us/t/initial-video-fails-to-load-but-refreshing-once-will-trigger-video-stream/119373/1 "2024-10-17T20:41:38Z")

</div>

**Video SDK Type and Version**  
Using zoom/meetingsdk": "^3.8.10 (node)

**Description**  
When a user first enters a (nextjs, react) page containing a zoom EmbeddedClient, it fails to stream video. Only after refreshing the page once does the video begin normally. The EmbeddedClient is defined by assigning an element via

```auto
    await client.init({
      language: 'en-US',
      leaveOnPageUnload: true,
      patchJsMedia: true,
      zoomAppRoot: rootElement!, // here
     // ... other stuff

```

**Error?**  
On the initial page load for an already-in-process webinar, I get the following console logs, but no video streams (and no network/console errors are received):

client.join() completed  
Audio Version: 2313  
Video Version: 2313  
Sharing Version: 2313

On reloading, I get the same logs followed by

consume interval 5

and the video begins streaming as expected.

**How To Reproduce**  
_Steps to reproduce the behavior including:_  
Browser is chrome  
Authentication: each participant gets a JWT token (based on encoded secrets) passed to the client.

Perhaps there’s an event I can listen to and a command I can trigger to re-attempt to fetch video without needing to reload? Simply reloading the page Allows a user to receive video feed, so I’m assuming there’s some sort of race condition that maybe we’re not aware of.
