Avatar

Level 2

How to control basic Camera parameters like fps, screen size?

You propose use WebcamPublisher.resolutionFactor ?

I dont undestend how it works.

Specifies the resolution factor of captured data;

ResolutionFactor values range from 1 (lowest resolution) to 10 (highest resolution).

Resolution factor gets multiplied by the native width and height of captured camera.

We provide three native width and height values based on aspect ratios.

That width and height when multiplied with this factor, gives the resolution.

For higher resolution, use a value like 5.

You provide 3 native? values?

Let say i set 10, i have like 412 x 412. Ok. But where resolution ratio like 4:3...

About FPS. I can set fps only after event of publishing phase? Because after creating WebcamPublisher, camera getter is null.

Please advice how to control Camera with WebcamPublisher?

For now i have all streams in 1:1 ratio.