Wowza Community

How to switch between webcam and screen share using a single WebRTC live stream?

I am using the resources on this link: https://github.com/WowzaMediaSystems/webrtc-examples.

This functionality does not exist at this time in our repo. The example repo has one example for screenshare and one example for webcam chat/meeting, but not both.

Hi Amara! I also encountered this kind of error. What would be the best way to implement Wowza for eLearning? The feature that I want to achieve is Live Stream the teacher’s video and at the same time Share Screen the presentation (Ex. PPT, PDF, etc.).

I see. I was planning to use Wowza for E-Learning where you can use your webcam and screen share simultaneously. Do you have some recommendations?

@Jose Emmanuel Manangan @Marc Medina honestly I would use Zoom at this point. Currently we do not have a way to composite the webcam and screenshare into a single stream at the server with Wowza. We’ve talked about putting compositing on our roadmap, but I cannot make any promises as to when this may happen or if it would include handling use cases like this.

I’m happy to add this item into our feature request backlog.

You can switch between the two but not put them into one composite.

Switching is quite easy, what you need to use is replaceTrack. This will seamlessly switch the track from for instance webcam to screen and back without interrupting the stream. We’ve been doing this for years.

1 Like

Is there a repo that you can share? Sounds like you got it figured out!

@Remco_Treuren could you share the codebase or example of how get webrtc to switch between cam/screenshare? TIA