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 api.video.
- You need to add video sources. Press the + under sources.
Select “Video Capture Device” and choose the built in camera from the drop down, and click OK
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).
4.Save the settings
Click “Start Streaming” in OBS to start sending video from your camera to api.video.
I hope this helps!