1

How can we have a stream in which video and screen share in simultaneously in one single stream using webRTC so it can be send to all the peers in one stream

jay kakkar
  • 11
  • 2

1 Answers1

0

You need to use canvas html element and blend streams received via calls to getUserMedia (webcam) and getDisplayMedia (screen) into that canvas element.

Then take resulting blended picture from that canvas element and stream it with RTCPeerConnection.

Live example here: https://unrealstreaming.net:8443/UnrealWebRTCPublishingDemo/publish.aspx

user1390208
  • 1,866
  • 20
  • 20