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

Screen Sharing while Live streaming using AWS KVS Signaling channel #132

Open
HaseebIftikhar5275501 opened this issue Mar 25, 2021 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed Samples Questions related to Samples

Comments

@HaseebIftikhar5275501
Copy link

I have developed Live Streaming via Master and Viewer using AWS KVS. My requirement is to allow screen sharing while Streaming. How to incorporate this feature in using KVS

@jay-shiftasia
Copy link

screen share is the same with webcam share just need to replace the code below:
webcam:
await navigator.mediaDevices.getUserMedia(constraints);

screen share:
await navigator.mediaDevices.getDisplayMedia(constraints);

@HaseebIftikhar5275501
Copy link
Author

I added the same code but how to seemlessly swtich to screen share while broadcasting. As I have checked on local stream switching is done but the viewer cannot see the shared screen

@xruslanx123
Copy link

xruslanx123 commented Oct 30, 2021

I have a similar issue.

Although I understand that to solve the issue stated by @HaseebIftikhar5275501 you can use RTCRtpSender.replaceTrack() providing the video track from the right media stream,

Turning the streams off an turning them back on (When you want to stop camera/microphone) requires removing the track and not replacing it (You can set track.enabled to false but the connection to the camera will still be active which is a bad practice and bad UX) in which case the connection needs to be negotiated as stated here and following this documentation I understand that an SDP offer needs to be sent but it seems that it's not possible via SignalingClient.sendSdpOffer().

How can this be achieved?

@sirknightj sirknightj added help wanted Extra attention is needed question Further information is requested Samples Questions related to Samples labels Jul 6, 2023
@sirknightj sirknightj added enhancement New feature or request and removed question Further information is requested labels Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed Samples Questions related to Samples
Projects
None yet
Development

No branches or pull requests

4 participants