bigbluebutton-Github/bigbluebutton-html5/imports/api/meetings/server/handlers/broadcastLayout.js
2023-03-20 16:24:41 -03:00

28 lines
525 B
JavaScript

import changeLayout from '../modifiers/changeLayout';
export default async function broadcastLayout({ body }, meetingId) {
const {
layout,
presentationIsOpen,
isResizing,
cameraPosition,
focusedCamera,
presentationVideoRate,
pushLayout,
setByUserId,
} = body;
const result = await changeLayout(
meetingId,
layout,
presentationIsOpen,
isResizing,
cameraPosition,
focusedCamera,
presentationVideoRate,
pushLayout,
setByUserId,
);
return result;
}