Configure my webcam for live streaming

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

Hello,

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 api.video.

  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 api.video. On the bottom right of the app, click “Settings”, and open the “Stream” settings. Under Service, select Custom, and add “rtmp://broadcast.api.video/s” for the server, and copy the stream Key (you got from the response of this request https://docs.api.video/5.1/live/create-live-stream).

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 api.video.

I hope this helps!
Anne-Sophie