2021-07-19 22:02:58 +08:00
|
|
|
import changeLayout from '../modifiers/changeLayout';
|
|
|
|
|
2023-03-14 00:59:52 +08:00
|
|
|
export default async function broadcastLayout({ body }, meetingId) {
|
|
|
|
const {
|
|
|
|
layout,
|
|
|
|
presentationIsOpen,
|
|
|
|
isResizing,
|
|
|
|
cameraPosition,
|
|
|
|
focusedCamera,
|
|
|
|
presentationVideoRate,
|
|
|
|
pushLayout,
|
|
|
|
setByUserId,
|
|
|
|
} = body;
|
2021-07-19 22:02:58 +08:00
|
|
|
|
2023-03-14 00:59:52 +08:00
|
|
|
const result = await changeLayout(
|
|
|
|
meetingId,
|
|
|
|
layout,
|
|
|
|
presentationIsOpen,
|
|
|
|
isResizing,
|
|
|
|
cameraPosition,
|
|
|
|
focusedCamera,
|
|
|
|
presentationVideoRate,
|
|
|
|
pushLayout,
|
|
|
|
setByUserId,
|
|
|
|
);
|
|
|
|
return result;
|
2021-07-19 22:02:58 +08:00
|
|
|
}
|