Configure my webcam for live streaming

Hello how i can open webcam for starting live streaming in php?


The first thing you’ll need is some software to record your live stream. You can use OBS for example, it’s free and supports Linux/Mac/Windows.
You need to get OBS to start collecting video from your laptop camera or webcam, and send it to

  1. You need to add video sources. Press the + under sources.

Capture d’écran 2020-02-03 à 13.47.28
Select “Video Capture Device” and choose the built in camera from the drop down, and click OK

Capture d’écran 2020-02-03 à 13.49.53
2. You should see your image on the screen, ready for live streaming.

3.Now to connect OBS to On the bottom right of the app, click “Settings”, and open the “Stream” settings. Under Service, select Custom, and add “rtmp://” for the server, and copy the stream Key (you got from the response of this request

Capture d’écran 2020-02-03 à 13.56.07

4.Save the settings
Click “Start Streaming” in OBS to start sending video from your camera to

I hope this helps!