DEV Community

Discussion on: Live stream with WebRTC in your Laravel application

Collapse
 
mupati profile image
Kofi Mupati

Do you have any errors in your browser console?

Collapse
 
sayamk3004 profile image
sayamk3004

No. Its just nothing happens after the viewer clicks... When I console log I see
like this
Ps. The broadcaster video starts, and I also have the sharing link... But when the viewers gets into the link and tries to join this happens^

Thread Thread
 
mupati profile image
Kofi Mupati • Edited

Were you able to set up the TURN/STUN server? If not, comment out the following code from the peer instance and test again. In this case, both the broadcaster and viewer should be on the same network.

The code to comment out:

        config: {
          iceServers: [
            {
              urls: "stun:stun.stunprotocol.org",
            },
            {
              urls: this.turn_url,
              username: this.turn_username,
              credential: this.turn_credential,
            },
          ],
        },
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
sayamk3004 profile image
sayamk3004

i did commented out and tried, is there any other way to get the peer connection apart from turn/stun server? It would be really nice if you can use my teamviewer for some time please?