DEV Community

Discussion on: Live stream with WebRTC in your Laravel application

Collapse
 
sayamk3004 profile image
sayamk3004

Well I have successfully connected, and it worked too. I have one question? Do we have any peer connection limitations? Cant this this be used as a live stream which can have millions of viewers watching it together?

Collapse
 
mupati profile image
Kofi Mupati

You'll need to modify the code. The limiting factor is the number of users that can be accommodated on a presence channel.

By the way how many users were able to connect to it after you got it to work?

Collapse
 
shehranahmad profile image
ShehranAhmad

Can you explain what did you changed in code because mine join stream button not work??

Collapse
 
mupati profile image
Kofi Mupati

do you have any error messages in the browser console?

Thread Thread
 
shehranahmad profile image
ShehranAhmad

No it's not showing any error or message in console.
I think this method is not hitting in Viewer.vue component

window.Echo.private(stream-signal-channel.${this.auth_user_id}).listen(
"StreamOffer",
({ data }) => {
console.log("Signal Offer from private channel");
this.broadcasterId = data.broadcaster;
this.createViewerPeer(data.offer, data.broadcaster);
}
);

Thread Thread
 
mupati profile image
Kofi Mupati

okay. are you connecting on the same local network?

Thread Thread
 
shehranahmad profile image
ShehranAhmad

Yes I am connecting on same local network but join stream button not working