Get started with live stream in 5 minutes
Creating a live stream is simple with api.video. After you create it, you have a variety of options for connecting live video and beginning broadcasting. This guide will cover how to set up your live stream with api.video and then use OBS to broadcast.
Associated API reference documentation
Choose an api.video client
The clients offered by api.video include:
To install your selected client, do the following:
Create an account
Before you can start streaming, you need to create an api.video account.
Once you are logged in to the Dashboard, select the environment of your choice (sandbox or production) and copy your API key.
Create a live stream container
The first part of setting up your live stream to broadcast is to create a live stream container. Once you create the container, you can use it for live streaming. Here is the code to create the container:
Connect live video to your live stream container
You'll want to grab your live stream's streamKey from the response. It's required for use with OBS. To get started:
Install OBS. You can grab the software here: OBS Studio
Establish a source. In the sources section, choose a video feed to share. You could choose to share your screen or to share your camera (on a Mac: Video Capture Device, and then in the "Device" dropdown, select the camera). You should now see the video source in the main OBS window.
Connect OBS to api.video. Under Settings, choose Stream. You'll see a choice for service - select api.video.
The server should be Default, and the streamKey is the value you received in the JSON response when you created the stream container.
Click OK to accept the changes.
Press Start Streaming.
Share the embed, iFrame, so that others can watch your stream!
If you can't find api.video in the list of services, you can choose custom and rtmp://broadcast.api.video/s for the server.
Live stream immediately from your dashboard
If you don't want to set up your live stream programmatically, api.video allows you to demo live streaming from the dashboard with the click of a button. Do the following:
Log in to your dashboard
Navigate to Livestreams
Click Create a live stream
Enter the title and choose the remaining configuration items. Click on Create to create the live stream object.
Once the live stream object is created you can either click on the Start livestream button and test it out from the dashboard.
The live stream object contains all the information you'll need if you choose to broadcast using something else like OBS. You can pause the live stream at any time by clicking pause on the video. If you don't see your live stream start right away, give it a few minutes to get ready.
There are many ways to set up a live stream. OBS is one of the most popular ways to get started.
Was this page helpful?