mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Add support for switching layouts in the Jitsi wrapper (#22664)
This commit is contained in:
parent
feccdec581
commit
91918f2a58
@ -204,6 +204,20 @@ const ack = (ev: CustomEvent<IWidgetApiRequest>) => widgetApi.transport.reply(ev
|
|||||||
ack(ev);
|
ack(ev);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
widgetApi.on(`action:${ElementWidgetActions.TileLayout}`,
|
||||||
|
(ev: CustomEvent<IWidgetApiRequest>) => {
|
||||||
|
ev.preventDefault();
|
||||||
|
meetApi?.executeCommand('setTileView', true);
|
||||||
|
ack(ev);
|
||||||
|
},
|
||||||
|
);
|
||||||
|
widgetApi.on(`action:${ElementWidgetActions.SpotlightLayout}`,
|
||||||
|
(ev: CustomEvent<IWidgetApiRequest>) => {
|
||||||
|
ev.preventDefault();
|
||||||
|
meetApi?.executeCommand('setTileView', false);
|
||||||
|
ack(ev);
|
||||||
|
},
|
||||||
|
);
|
||||||
widgetApi.on(`action:${ElementWidgetActions.StartLiveStream}`,
|
widgetApi.on(`action:${ElementWidgetActions.StartLiveStream}`,
|
||||||
(ev: CustomEvent<IWidgetApiRequest>) => {
|
(ev: CustomEvent<IWidgetApiRequest>) => {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
|
Loading…
Reference in New Issue
Block a user