bigbluebutton-Github/bigbluebutton-html5/imports/api/meetings/server/handlers/broadcastLayout.js

28 lines
525 B
JavaScript
Raw Normal View History

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;
}