We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i am trying to add screen share in present code .. but it shows on my screen clearly but unable to see on other user screen code :-
navigator.mediaDevices.getDisplayMedia({ video: true, audio:true }).then(stream => { const video1 = document.createElement('video'); video1.controls = true; addVideoStream(video1,stream) socket.on('user-connected', userId =>{ const call = peer.call(userId, stream) stream.getVideoTracks()[0].addEventListener('ended', () => { video1.remove() }); call.on('close', () => { }) }) stream.getVideoTracks()[0].addEventListener('ended', () => { video1.remove() }); }); }catch(err) { console.log("Error: " + err); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
i am trying to add screen share in present code .. but it shows on my screen clearly but unable to see on other user screen
code :-
The text was updated successfully, but these errors were encountered: