I am trying to use the react native webrtc for building a screen sharing application.
I have used getDisplayMedia() for getting the screen share with using a broadcast extension plugin. But currently it does not support system audio sharing. How can i do this?
Also, I have tried to use this function with adding audio parameter but it’s not working and did not getting audio tag from the getDisplayMedia.
const displayStream = await mediaDevices.getDisplayMedia({
video: true,
audio: true,
});
Here is the response of displayStream
{"_id": "AF342A61-BE46-4DF1-9916-7967761E07BC", "_reactTag": "AF342A61-BE46-4DF1-9916-7967761E07BC", "_tracks": [{"_constraints": [Object], "_enabled": true, "_muted": false, "_peerConnectionId": undefined, "_readyState": "live", "_settings": [Object], "id": "553E4FA7-AF2A-46D4-A500-9133AD521B82", "kind": "video", "label": "", "remote": false}]}
Please give me your suggestion.