# Is it possible to reduce the video render time?

**URL:** <https://devforum.zoom.us/t/is-it-possible-to-reduce-the-video-render-time/81532>\
**Category:** Video SDK\
**Created:** [January 16, 2023, 7:02pm UTC](https://devforum.zoom.us/t/is-it-possible-to-reduce-the-video-render-time/81532 "2023-01-16T19:02:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![memx86](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/memx86/32/44493_2.png) [@memx86](https://devforum.zoom.us/u/memx86)\
**Post date:** [January 16, 2023, 7:02pm UTC](https://devforum.zoom.us/t/is-it-possible-to-reduce-the-video-render-time/81532/1 "2023-01-16T19:02:32Z")

</div>

Video SDK Type and Version  
For Web (React): “@zoom1234/videosdk”: “^1.5.5”,  
For React Native: “@zoom1234/react-native-videosdk”: “^1.5.3”,

Description

There are two applications. The first on React Native, and the other one on the React. Between them is making video connection with ZoomVideoSDK. Approximately, the video connection time, before users will be able see each other, is 10-15 seconds. It is possible to reduce connection time, for example to 5 seconds, and how can I do it?

The code:  
React Native

```auto
const sessionJoinListener = zoom.addListener(EventType.onSessionJoin, async (session: any) => {
      try {
        zoom.session.getSessionName().then(setSessionName)
        const mySelf: ZoomVideoSdkUser = new ZoomVideoSdkUser(session.mySelf)
        const remoteUsers: ZoomVideoSdkUser[] = await zoom.session.getRemoteUsers()

        await zoom.videoHelper.startVideo() 
        await zoom.audioHelper.startAudio() 
      } catch (error) {
        console.log('Error ', error)
      }
    })

```

React

```auto
     const onVideoStateChange = async (payload) => {
            try {
                    if (payload.action === 'Start') {
                    await stream.renderVideo(
                        document.querySelector('#participant-canvas'),
                        payload.userId,
                        1920,
                        1080,
                        0,
                        0,
                        3
                    )
                } else if (payload.action === 'Stop') {
                    await stream.stopRenderVideo(
                        document.querySelector('#participant-canvas'),
                        payload.userId
                    )
                }
            } catch (error) {
                console.log('Error ', error)
            }
        }

 client.on('peer-video-state-change', onVideoStateChange)

```

How To Reproduce

1. User from React Native does zoom session
2. User from React immediately joins the session
3. The video appears when the event EventType.onSessionJoin is triggered in the React Native. It is where the video starts with «await zoom.videoHelper.startVideo()»
4. React user can see the video when ‘peer-video-state-change’ is triggered
5. In both users, the time is 10-15 seconds before the video is established

React

- Device: MacBook Pro
- OS: macOS Monterey 12.0.1 (21A559)
- Browser: Chrome 108.0.5359.124
- SharedArrayBuffer is enabled

React Native

- Device: iPhone 7Plus
- OS: iOS 15.7.1
- In other iPhones the same situation

---

<div class="post-metadata">

**Author:** ![kellyjandrews](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kellyjandrews/32/51599_2.png) [@kellyjandrews](https://devforum.zoom.us/u/kellyjandrews)\
**Post date:** [January 17, 2023, 3:49pm UTC](https://devforum.zoom.us/t/is-it-possible-to-reduce-the-video-render-time/81532/2 "2023-01-17T15:49:14Z")

</div>

Thanks for posting - I will ask if anyone else has some ideas on how to make the speeds more reasonable. What geographical region are you in as well, in case that may have something to do with it?

---

<div class="post-metadata">

**Author:** ![memx86](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/memx86/32/44493_2.png) [@memx86](https://devforum.zoom.us/u/memx86)\
**Post date:** [January 17, 2023, 4:45pm UTC](https://devforum.zoom.us/t/is-it-possible-to-reduce-the-video-render-time/81532/3 "2023-01-17T16:45:42Z")

</div>

We are testing it in Ukraine. We are gonna use it in United Arab Emirates as well.

---

<div class="post-metadata">

**Author:** ![kellyjandrews](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kellyjandrews/32/51599_2.png) [@kellyjandrews](https://devforum.zoom.us/u/kellyjandrews)\
**Post date:** [January 18, 2023, 11:40am UTC](https://devforum.zoom.us/t/is-it-possible-to-reduce-the-video-render-time/81532/4 "2023-01-18T11:40:19Z")

</div>

Are you able to set your data center region - [https://support.zoom.us/hc/en-us/articles/360042411451-Selecting-data-center-regions-for-meetings-webinars](https://support.zoom.us/hc/en-us/articles/360042411451-Selecting-data-center-regions-for-meetings-webinars)?

I’m curious if that might have an affect on the load times.

---

<div class="post-metadata">

**Author:** ![memx86](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/memx86/32/44493_2.png) [@memx86](https://devforum.zoom.us/u/memx86)\
**Post date:** [January 24, 2023, 10:50am UTC](https://devforum.zoom.us/t/is-it-possible-to-reduce-the-video-render-time/81532/5 "2023-01-24T10:50:01Z")

</div>

My guess we are locked to USA. Or it’s not the case?

 ![2023-01-24 123616](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/7/27cda26768a97c1a71d712bac7250223aa1f7105.png)  
I’m really confused what billing plan we need to set my data region. I don’t really see billing plans for developers. Only for users.  
So if we upgrade our plan and disable USA video render speed can improve?

---

<div class="post-metadata">

**Author:** ![kellyjandrews](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kellyjandrews/32/51599_2.png) [@kellyjandrews](https://devforum.zoom.us/u/kellyjandrews)\
**Post date:** [January 24, 2023, 11:28am UTC](https://devforum.zoom.us/t/is-it-possible-to-reduce-the-video-render-time/81532/6 "2023-01-24T11:28:09Z")

</div>

That would be my best guess for your situation and the first place I’d look.
