Hello, I’m trying to set the resolution to 320x240 but it doens’t work, I try with a wrong paremeter and it fails, so I thinkg someone is looking for that paremeter, but it desn’t care.
Also, I want to know if a can fix a 4:3 resolution for mobile devices, not the vertical camera.
1 Like
Hi! Having same issue. If resolution is set to 320x240 it doesn’t work for mobile device. Even if set publisher resolution to 240x320 it is still not working on mobile device.
I would like to use 320x240 resolution as well, but how can we implement it?
Thanks!
Hi,
Resolution of the Publisher object completely depends on the client platform. What this means is that internally openvidu-browser entirely relies on standard WebAPI to set the desired resolution of the video stream: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia#Syntax
This parameter is always used with “ideal” keyword (see the previous link) when setting the video capabilities. So, the client device will do its best effort to honor what you indicate in the resolution and framerate properties. But depending on the platform, the client device may behave one way or another. For example, Google Chrome will set the exact resolution and framerate you want, because it tweaks it with software (the process itself will resize the video stream to exactly match what you passed as resolution). But Firefox may require that the hardware natively supports the resolution or framerate in order to use it (so if the camera doesn’t natively support a ABCxDEF specific resolution, it won’t use it).
To sum up: openvidu-browser is using under-the-hood the standard web API. If you want complete control of the media stream, you can always pass as videoSource
and audioSource
the standard MediaStreamTrack object already initialized, with the properties you have defined using standard browser methods.
1 Like