Types
This commit is contained in:
parent
71dcc94166
commit
821622f71c
1 changed files with 5 additions and 3 deletions
|
|
@ -336,10 +336,12 @@ export function useGroupCall(groupCall: GroupCall): UseGroupCallReturnType {
|
|||
const onScreenshareStart = useCallback(
|
||||
async (ev: CustomEvent<IWidgetApiRequest>) => {
|
||||
updateState({ requestingScreenshare: false });
|
||||
|
||||
const data = ev.detail.data as unknown as ScreenshareStartData;
|
||||
|
||||
await groupCall.setScreensharingEnabled(true, {
|
||||
desktopCapturerSourceId: ev.detail.data
|
||||
.desktopCapturerSourceId as string,
|
||||
audio: !ev.detail.data.desktopCapturerSourceId,
|
||||
desktopCapturerSourceId: data.desktopCapturerSourceId as string,
|
||||
audio: !data.desktopCapturerSourceId,
|
||||
});
|
||||
await widget.api.transport.reply(ev.detail, {});
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue