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

microphone not working while sharing a screen #32

Closed
pdeivaraj opened this issue Feb 25, 2021 · 2 comments
Closed

microphone not working while sharing a screen #32

pdeivaraj opened this issue Feb 25, 2021 · 2 comments

Comments

@pdeivaraj
Copy link

pdeivaraj commented Feb 25, 2021

presenting screen the microphone not working

@0x5eba
Copy link
Owner

0x5eba commented Feb 25, 2021

Connect with 2 tabs

@pdeivaraj
Copy link
Author

pdeivaraj commented Feb 26, 2021

@0x5eba thanks but we solved the issue

getDislayMedia = () => {
		if (this.state.screen) {
			if (navigator.mediaDevices.getDisplayMedia) {
				navigator.mediaDevices.getDisplayMedia({ video: true, audio: true })
					.then((stream) => {
						navigator.mediaDevices.getUserMedia({audio: true}).then((audio)=>{
							this.getDislayMediaSuccess(new MediaStream([audio.getTracks()[0], stream.getTracks()[0] ]))
						})
					})
					.catch((e) => console.log(e))
			}
		}
	}

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