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
No known key found for this signature in database
GPG key ID: D1D45825D60C24D2

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]);