Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listen to audio stream without microphone #1057

Open
mkipness opened this issue Dec 20, 2022 · 1 comment
Open

Listen to audio stream without microphone #1057

mkipness opened this issue Dec 20, 2022 · 1 comment

Comments

@mkipness
Copy link

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

@MediaKitApp
Copy link

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 */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants