Add support for audio sharing

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2022-07-16 09:08:38 +02:00
parent 6456a6b0c0
commit e63b3d1b3e

View File

@@ -302,7 +302,7 @@ export function useGroupCall(groupCall: GroupCall): UseGroupCallType {
const toggleScreensharing = useCallback(() => {
updateState({ requestingScreenshare: true });
groupCall.setScreensharingEnabled(!groupCall.isScreensharing()).then(() => {
groupCall.setScreensharingEnabled(!groupCall.isScreensharing(), { audio: true }).then(() => {
updateState({ requestingScreenshare: false });
});
}, [groupCall]);