RTCMultiConnection
RTCMultiConnection copied to clipboard
Listen to audio stream without microphone
Has anyone gotten this working successully? I've tried all kinds of suggestions but it seems like the computer without the mic cannot enter the stream, so can't hear anything.
Thanks, Max
This should be useful for you, it's an example, I've tested it and it works.
connection.dontCaptureUserMedia = false;
connection.session = {
data: true,
video: false,
screen: false,
audio: true,
};
connection.mediaConstraints = {
audio: true,
video: false,
screen: false,
}
/** Disabled camera and mic */
connection.mediaConstraints.video = false;
connection.mediaConstraints.audio = true;
connection.session.video = false;
connection.session.audio = true;
connection.sdpConstraints.mandatory = {
OfferToReceiveAudio: true,
OfferToReceiveVideo: true
};
connection.sessionid = 'room-id';
/** Connected code now */