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
How to switch from video/audio streaming to screen/audio streaming and back ? #672
Comments
Its not necessary to create a new connection - you could just replace the tracks of the stream:
EDIT: |
It worked OK! Thanks! |
It works fine but let me explain for the floks who are trying this with PeerJS.
|
can @muhammadsaqib95 or anyone tell me how we can handle the case when the call has only audio track previously and we need to add our screen recording video track to the call stream. Regards |
Hi,
During a call between two peers streaming video/audio, if one of them
wants to share his screen, he could use
getDisplayMedia()
to geta new stream with screen/audio. How to send this new stream to
the peer instead of the current video/audio stream ?
Is it necessary to close the current peer connection and create a
new one with new stream ?
Regards.
The text was updated successfully, but these errors were encountered: