bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/screenshare
prlanzarin b8811bafd4 fix(layout): use actual screen share size when calculating smart layout
Smart layout (et al) presumes screen sharing will always use 100%
width of the media area. That causes cameras to always be positioned on
top, which is not always the optimal position depending on the viewport
and stream aspect ratio/resolution - so space is wasted.

This commit uses the actual screen sharing video size as provided by
HTMLVideo's videoWidth/videoHeight properties. The calculation uses the
same logic as the one used for presentation/slides, which should make it
a bit familiar.

There's also a handler for HTMLVideo's `resize` event for those browsers
that support it - which enables handling of variable-sized screen
sharing streams. That handler is debounced at 500 ms to prevent
excessive CPU use.

Extra testing is needed with the widest range possible of
browsers/environments and feature combinations.
2022-07-22 13:28:43 +00:00
..
switch-button move button component to common folder 2022-02-14 20:20:50 +00:00
component.jsx fix(layout): use actual screen share size when calculating smart layout 2022-07-22 13:28:43 +00:00
container.jsx Adapt code for merge 2022-03-02 11:24:54 -03:00
service.js fix(layout): use actual screen share size when calculating smart layout 2022-07-22 13:28:43 +00:00
styles.js move loading-screen component to common folder 2022-02-15 14:55:08 +00:00