Black bars when not using 16:9 aspect ratio

Sure. For this test I will use these video options when calling startVideo:

captureWidth: 320,
captureHeight: 240,

The camera is sending a bright reddish-orange that will fill the camera frame to make it easy to identify the borders. I will render it onto the canvas with a width & height that is also 4:3 ratio using quality 1.

This is a screenshot with my other video elements in place. The border box shows the size I am targeting.

The camera on the left is the local user. It renders correctly in the 4:3 ratio. The camera on the right is a remote user. You’ll see that the video being sent & rendered has been forced into a 16:9 ratio with the extra width filled in with black bars.

This is the same setup, but with my other elements removed so the canvas does not have any other elements above or below it:

By comparison, this is the video when captured as 16:9 with video options:

captureWidth: 320,
captureHeight: 180,

I have also adjusted my other elements to match the 16:9 ratio. This works, and it it what I am using for now as a workaround. However, I’d much rather use the 4:3 ratio for my use case.

Ideally, the received video would match the capture ratio. However, it would also be okay if the received video was forced into a 16:9 ratio as long as the filling bars were transparent or we could specify the color & transparency.