How to set size (WxH) of video streams

Hi all … what’s the recommended way to set the size (width x height) of published/subscribed video streams?

Have been experimenting with setting the “resolution” property in “initPublisher” (as outlined in Cheatsheet: Publish/Unpublish a stream) but this seems to do different things with different browsers on the same device, e.g. Chrome seems to work fine but not so with Firefox.

Should we be setting the “videodimensions” property in the Connection object instead (Reference Documentation/REST API)?

Thanks!
Dennis in Canada

Hello!

You are right. This is the functioning of resolution property of OpenVidu.initPublisher method: Publisher resolution doesn't work - #3 by pabloFuente