DEV Community

Discussion on: Live stream with WebRTC in your Laravel application

Collapse
 
dariochiappello profile image
Darío Chiappello • Edited

hi, is it possible to run the project without a turn server? for example with xampp or wampserver

Collapse
 
mupati profile image
Kofi Mupati

The TURN/STUN server is not needed to run your webserver. It is used during the signaling process between 2 peers. Run the application like any laravel application on your xampp or wampserver.

Comment out the following code. It will work if both devices are on the same network:

        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
Collapse
 
alinajmuddin98 profile image
Muhammad Ali Najmuddin

Ive commented this out from bradcast, viewer, and app js. Still not working. I use php artisan serve. Do i need to use xampp?

Collapse
 
alinajmuddin98 profile image
Muhammad Ali Najmuddin

Hi Dario, if I may ask, did you commented all of the occurance of config details for turn server?

Ive commented all of it in broadcast, viewer and app js file. Still the join stream wont work.

Collapse
 
dariochiappello profile image
Darío Chiappello

Hello Muhammad. I commented on the config details and the camera and sound of the sender can be activated but the image is not reaching the receiver