bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/layout
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
..
layout-manager fix(layout): use actual screen share size when calculating smart layout 2022-07-22 13:28:43 +00:00
modal modifying specific buttons 2022-07-07 10:45:54 -03:00
context.jsx fix(layout): Remove stray code from merge and fix indentation 2022-04-14 19:22:21 +00:00
defaultValues.js TEMP 2021-12-09 20:37:05 +00:00
enums.js Merge branch 'v2.5.x-release-Layouts' of github.com:lfzawacki/bigbluebutton into develop-bbb 2022-04-13 21:08:32 +00:00
initState.js Merge tag 'v2.5.1' into merge25-26-jun16 2022-06-16 13:58:54 -03:00
service.js fix(layout): Moderators could not change layout if pushLayout was true 2022-05-24 17:31:35 -03:00
utils.js Add New Layout Manager 2021-05-17 17:25:07 -03:00