Add support for audio sharing
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user