DEV Community

Discussion on: Video call with WebRTC Angular and ASP.NET Core

Collapse
 
mahmoudabdin profile image
Mahmoud abdin

hi, greate post it helped me a lot, but what if want to share the same video with multiple users, like noly first connection can start the broadcast and when others entered the connection they will be able to show the broadcast .. do you have any idea? to be more clear user x will start the streaming the other users let us say c,v,b and n ... can see the live streaming video of user x.

Collapse
 
sebalr profile image
Sebastian Larrieu • Edited

Hi, you have to identify your broadcaster, lets say user X, then every new user will send a message to the server for a new connection, user X will be listening for that message and start a new connection for that peer.
That for one to to many. If you need all to communicate you will need to do a star network, there is an example in simple peer docs.
User X will have a list of peers to send data and the rest of the user will only have one peer

Some comments have been hidden by the post's author - find out more