&aspectratio

Changes the aspect ratio on the publisher side

Sender-Side Option! (&push)

Aliases

  • &ar

Options

Example: &aspectratio=1.77777 or &aspectratio=landscape

ValueDescription

landscape

aspect ratio of 16:9 (1.777777)

portrait

aspect ratio of 9:16 (0.5625)

square

aspect ratio of 1:1 (1)

1.33333

aspect ratio of 4:3

(decimal number)

aspect ratio

Details

&aspectratio changes the aspect ratio on the publisher side. Floating point value; 1.777777 is common; not supported by all browsers.

If using &aspectratio, it will keep the height constant, and vary width, unless &width is set, which will then be the fixed constant.

Screen-share

&aspectratio works with screen-shares, so you can force crop an incoming screen-share to be a certain aspect ratio. If &screenshareaspectratio is used it will apply to just screen-shares. If &screenshareaspectratio does not have a value passed, it's assumed to be set as "default", which overrides &aspectratio option, if used also.

page&screenshareaspectratiopage&qualitypage&widthpage&height

Last updated