# Can I get the maximum number before calling renderVideo API?

**URL:** <https://devforum.zoom.us/t/can-i-get-the-maximum-number-before-calling-rendervideo-api/118122>\
**Category:** Web\
**Tags:** api\
**Created:** [September 26, 2024, 3:59am UTC](https://devforum.zoom.us/t/can-i-get-the-maximum-number-before-calling-rendervideo-api/118122 "2024-09-26T03:59:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![amd.yamamoto](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amd.yamamoto/32/63635_2.png) [@amd.yamamoto](https://devforum.zoom.us/u/amd.yamamoto)\
**Post date:** [September 26, 2024, 3:59am UTC](https://devforum.zoom.us/t/can-i-get-the-maximum-number-before-calling-rendervideo-api/118122/1 "2024-09-26T03:59:49Z")

</div>

**Description**  
Can I get the maximum number before calling renderVideo API?  
After calling renderVideo API, the message “subscribe video counts greater than maximum size (1)” is displayed.  
I want to get the part (1) before calling renderVideo API.  
I think 1 is when “mediaStream.isSupportMultipleVideos() == false”.  
How do I get 4 and 9?

**Browser Console Error**  
subscribe video counts greater than maximum size (1)

**Which Web Video SDK version?**  
1.5.5

**Video SDK Code Snippets**

```auto
            await mediaStream.renderVideo(
              videoRef.current as HTMLCanvasElement,
              user.userId,
              sp.width,
              sp.height,
              sp.left,
              sp.bottom,
              quality //VideoQuality.Video_90P
            );

```

**Device (please complete the following information):**

- Device: Chromebook
- OS: ChromeOS
- Browser: Chrome
- Browser Version [128.0.6613.161(Official Build)]

---

<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:** [September 29, 2024, 9:25am UTC](https://devforum.zoom.us/t/can-i-get-the-maximum-number-before-calling-rendervideo-api/118122/2 "2024-09-29T09:25:42Z")

</div>

Hey @amd.yamamoto

Thanks for your feedback.

> I think 1 is when “mediaStream.isSupportMultipleVideos() == false”.

That’s correct.

> How do I get 4 and 9?

Typically, on mobile browsers or when `SharedArrayBuffer` is disabled, the maximum number is 4. However, on desktop browsers with `SharedArrayBuffer` enabled, the maximum number increases to 25.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![amd.yamamoto](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amd.yamamoto/32/63635_2.png) [@amd.yamamoto](https://devforum.zoom.us/u/amd.yamamoto)\
**Post date:** [September 29, 2024, 9:56am UTC](https://devforum.zoom.us/t/can-i-get-the-maximum-number-before-calling-rendervideo-api/118122/3 "2024-09-29T09:56:28Z")

</div>

Thank you, Vic.

1 is ‘mediaStream.isSupportMultipleVideos() == false’.

4 for mobile browser or desktop browser with SharedArrayBuffer disabled.

25 is desktop with SharedArrayBuffer enabled.

Should I use this kind of decision to determine the number of screen displays?

Sincerely,  
Hidekazu YAMAMOTO.

---

<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:** [September 30, 2024, 2:39am UTC](https://devforum.zoom.us/t/can-i-get-the-maximum-number-before-calling-rendervideo-api/118122/4 "2024-09-30T02:39:37Z")

</div>

Hey @amd.yamamoto

To add, on low-performance devices (where `navigator.hardwareConcurrency < 4`), a maximum of 2 videos can be rendered.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![amd.yamamoto](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amd.yamamoto/32/63635_2.png) [@amd.yamamoto](https://devforum.zoom.us/u/amd.yamamoto)\
**Post date:** [September 30, 2024, 11:08am UTC](https://devforum.zoom.us/t/can-i-get-the-maximum-number-before-calling-rendervideo-api/118122/5 "2024-09-30T11:08:58Z")

</div>

Hey Vic

Thank you for pointing this out.  
I see that there is a pattern where the maximum is 2.  
I will take this into consideration for the screen layout.

Thank you very much.  
Hidekazu Yamamoto.

---

<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:** [October 30, 2024, 9:09pm UTC](https://devforum.zoom.us/t/can-i-get-the-maximum-number-before-calling-rendervideo-api/118122/6 "2024-10-30T21:09:58Z")

</div>

Closed on October 30, 2024, 9:09pm UTC

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