# Video freezes when making an AJAX call

**URL:** <https://devforum.zoom.us/t/video-freezes-when-making-an-ajax-call/106943>\
**Category:** Twilio Migration\
**Tags:** video-sdk\
**Created:** [April 1, 2024, 5:42pm UTC](https://devforum.zoom.us/t/video-freezes-when-making-an-ajax-call/106943 "2024-04-01T17:42:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![fahim.vds](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fahim.vds/32/57006_2.png) [@fahim.vds](https://devforum.zoom.us/u/fahim.vds)\
**Post date:** [April 1, 2024, 5:42pm UTC](https://devforum.zoom.us/t/video-freezes-when-making-an-ajax-call/106943/1 "2024-04-01T17:42:40Z")

</div>

Description  
Hi @tommy  
I have migrated from Twilio to the Zoom Video SDK.  
I am using the video-player-container and video-player HTML elements to render the video.  
When I make a JavaScript AJAX call to retrieve data from the server, the participant’s video freezes.  
I have enabled SharedArrayBuffer

Which Web Video SDK version?  
1.10.8

Error  
video freezes when making an AJAX call

Browser version  
Chrome Latest

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 2, 2024, 4:12pm UTC](https://devforum.zoom.us/t/video-freezes-when-making-an-ajax-call/106943/2 "2024-04-02T16:12:24Z")

</div>

Hey @fahim.vds ,

Can you please share what OS you are on (windows, macOS, iOS, Android, etc) and any errors in the browser console?

After your AJAX request, are you doing any DOM updates to the videos which?

If you could also share a video, that would be helpful. I am unable to reproduce this issue.

Best,  
Tommy

---

<div class="post-metadata">

**Author:** ![fahim.vds](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fahim.vds/32/57006_2.png) [@fahim.vds](https://devforum.zoom.us/u/fahim.vds)\
**Post date:** [April 4, 2024, 2:38pm UTC](https://devforum.zoom.us/t/video-freezes-when-making-an-ajax-call/106943/3 "2024-04-04T14:38:10Z")

</div>

Hi @tommy

I am using windows 10 and not getting any errors in the browser console.  
I am not doing any DOM updates to the videos  
I am making an AJAX request on button click

Here is a sample of my AJAX request code

$.ajax({  
type: “POST”,  
url: LocalHostUrl,  
data: Parameters,  
async: false,  
contentType: “application/json; charset=utf-8”,  
dataType: “json”,  
success: onSuccess,  
});

---

<div class="post-metadata">

**Author:** ![puttykey2024](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@puttykey2024](https://devforum.zoom.us/u/puttykey2024)\
**Post date:** [April 4, 2024, 9:55pm UTC](https://devforum.zoom.us/t/video-freezes-when-making-an-ajax-call/106943/4 "2024-04-04T21:55:50Z")

</div>

Please make sure that the AJAX call do not put excessive load on client side.

---

<div class="post-metadata">

**Author:** ![RoseCliver](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rosecliver/32/58347_2.png) [@RoseCliver](https://devforum.zoom.us/u/RoseCliver)\
**Post date:** [April 5, 2024, 8:14am UTC](https://devforum.zoom.us/t/video-freezes-when-making-an-ajax-call/106943/5 "2024-04-05T08:14:00Z")

</div>

> [@fahim.vds](#):
>
> Description  
> Hi @tommy  
> I have migrated from Twilio to the Zoom Video SDK.  
> I am using the video-player-container and video-player HTML elements to render the video.  
> When I make a JavaScript AJAX call to retrieve data from the server, the participant’s video freezes.  
> I have enabled SharedArrayBuffer
> 
> Which Web Video SDK version?  
> 1.10.8
> 
> Error  
> video freezes when making an AJAX call
> 
> Browser version  
> Chrome Latest

Video freezes when making AJAX call using Zoom Video SDK 1.10.8. Ensure compatibility and troubleshoot AJAX implementation. Consider browser and server interactions.

---

<div class="post-metadata">

**Author:** ![fahim.vds](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fahim.vds/32/57006_2.png) [@fahim.vds](https://devforum.zoom.us/u/fahim.vds)\
**Post date:** [April 9, 2024, 10:41am UTC](https://devforum.zoom.us/t/video-freezes-when-making-an-ajax-call/106943/6 "2024-04-09T10:41:47Z")

</div>

Hey @tommy @puttykey2024

The AJAX request takes only 300ms, but the video still freezes for some time.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 25, 2024, 6:24pm UTC](https://devforum.zoom.us/t/video-freezes-when-making-an-ajax-call/106943/7 "2024-11-25T18:24:16Z")

</div>

Hey @fahim.vds ,

Are you still experiencing this issue? We have an update coming to our Video SDK with some performance and CPU improvements, which could help.

Stay updated here for Video SDK 2.X.X: [Video SDK - Web Changelog - Zoom Developers](https://developers.zoom.us/changelog/video-sdk/web/)

Best,  
Tommy
