Setting VideoStreamRenderer/LocalVideoStream max resolution (locally, not transmit resolution)

Neethan Puvanendran 0 Reputation points
2023-12-11T09:49:32.66+00:00

Hi!

I'm using the ACS Javascript SDK to connect to a Team meeting, and trying to scale down the user's local video stream (not the stream they're sending to ACS). On most browsers, the local video stream is not rendered in HD and is fine for a local preview. The optional BackgroundBlurEffect() from communication-calling-effects works fine. However, on Safari on Mac OSX, the local video is rendered in the highest quality possible it seems. Using the same webcamera (Logitech C925e), the video is rendered in full HD on a Mac Mini running Safari. This is fine in itself, but turning on the background blur effect (which is supported in Safari on OSX according to the documentation), the video becomes extremely laggy and is not transmitted properly at all.

I assume this is either due to the use of the Babylon.js library for doing background blur in Safari, or due to the library not optimized for such high resolution. Anywho, I would like to be able to request a specific resolution for the the local video, as you can do using getUserMedia() using native functions. Is this possible to do currently?

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
1,239 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 28,036 Reputation points Microsoft Employee Moderator
    2023-12-12T07:55:34.5+00:00

    @Neethan Puvanendran , Thanks for posting this question. While I’m checking on this internally, kindly take a look at these points:

    The following table represents the set of supported browsers, which are currently available. We support the most recent three major versions of the browser (most recent three minor versions for Safari) unless otherwise indicated.

    Reference:

    Just to highlight, as mentioned in this doc, Azure Communication Services Web Calling SDK supports setting the maximum video resolution, framerate, or bitrate that a client sends. The sender video constraints are supported on Desktop browsers (Chrome, Edge, Firefox) and when using iOS Safari mobile browser or Android Chrome mobile browser.

    Ref: ACS Calling Web (JavaScript) SDK - Release History

     

    We have a similar discussion, kindly check this:
    [Azure Communications Service] Local video stream does not work on Safari MacOs #24556

    Kindly share the following info: Provide the SDK version, call ID, code snippet that you are leveraging.

     

    Note: Kindly do not share any PII data on the public forum for your privacy and security.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.