Prioritize Video Resolution over FPS

Video SDK web v2.2.5

I was wondering how I am able to prioritize video resolution over fps. Currently when internet connection is choppy, the video resolution decreases.

I read it is possible here: How Zoom's Video SDK stacks up on web | Zoom, but can’t find the documentation for this: “Developers can always adjust these defaults to prioritize resolution over framerate”. I notice the zoom app does a similar prioritization of resolution, and I think this would help my project a lot.

Thank you in advance.

Hi @David30,
The Video SDK by default prioritizes resolution over FPS, you can do the opposite by using enableOptimizeForSharedVideo. This feature prioritizes FPS over resolution.

Hi Ekaansh,

I see that the enableOptimizeForSharedVideo is a setting for screen share and not normal user video, so just wanted to check that was right.

Also, given the default prioritization of resolution, what is the optimal VideoQuality resolution quality to put in the attachVideo function? Currently I am inputting 180p, 360p, 720p based on the size of the video player, but not sure if this will override any resolution optimizations by the video sdk.

Thanks,

David

Hi @ekaansh.zoom,

Wondering if there is an update on this. Thanks!

Hi @ekaansh.zoom @vic.yang ,

Wanted to check in again, since it has been 8 days since the last response.

Thanks

Hey @David30

enableOptimizeForSharedVideo is a setting for screen share and not normal user video,

Correct.

As for the resolution subscription of the Video SDK, it depends on your use case. I can give you a brief overview, and a detailed description will be available soon in the developer documentation.

  • 1:1 case: Recommend two 720P streams.
  • Speaker view case (layout with one large video and several small ones): Recommend one 720P + n 180P streams.
  • Gallery view case (all videos are the same size):
    • When there are fewer than 4 videos, recommend up to two 720P + n 360P streams, or just n 360P streams.
    • When there are more than 4 videos, recommend four 360P + n 180P streams

Thanks
Vic