Getting started with video broadcasts in Yandex Cloud Video
Note
The service is at the Preview stage.
To stream a video on the service's channel:
- Prepare your cloud.
- Create a channel.
- Create a line.
- Create a broadcast.
- Set up OBS.
- Start your broadcast.
- Check if the broadcast is available.
For information about using the service via the API, see How to get started with the Yandex Cloud Video API.
Prepare your cloud
- Go to the management console
and log in to Yandex Cloud or sign up if not signed up yet. - On the Yandex Cloud Billing
page, make sure you have a billing account linked and it has theACTIVE
orTRIAL_ACTIVE
status. If you do not have a billing account yet, create one. - Open the Cloud Video home page
. - Select the organization to work with Cloud Video in or create a new one.
-
To turn Cloud Video on, request access from the home page
. You can also request access from support. - Make sure you have the minimum role,
video.editor
, in the organization.
Create a channel
- Open the Cloud Video home page
. - Click
Create a channel. - On the channel creation page, enter:
- Name.
- (Optional) Description.
- Click Create.
Once the channel is created, you will find yourself inside it on the
Create a line
-
In the
Lines tab, click Create a line. -
Enter a name for the line.
-
In the Stream input protocol field, select
RTMP
. -
In the Stream type field, select
Push
. -
In the Thumbnail field, click
Select file and choose a cover image.The following cover formats are supported: JPG
, PNG , and GIF . -
Click Create.
Create a broadcast
-
In the
Broadcasts tab, click Create a broadcast. -
Enter a name for the broadcast.
-
Select the previously created line.
-
In the Thumbnail field, click
Select file and choose a cover image.The following cover formats are supported: JPG
, PNG , and GIF . -
In the Stream type field, select
On demand
. -
Click Create.
-
In the broadcast settings window that opens, copy the following data:
- Broadcast key
- Server address.
Set up OBS
- Download
Open Broadcaster Software (OBS). - Install and set up
OBS. - Under Controls, click Settings.
- In the Stream tab, set up the broadcast server:
- In the Service field, select Custom...
- In the Server field, specify the previously obtained server address.
- In the Stream Key field, specify the broadcast key you got earlier.
- Click OK.
- Under Sources, click
, choose what you want to stream (e.g., Video Capture Device), and click OK. - Select the video stream's source device, e.g., a webcam, and click OK.
- Under Controls, click Start Streaming.
Start your broadcast
- Go back to the
Broadcasts tab in Cloud Video. - Select the broadcast you created earlier.
- Click
Start.
The service limits the duration and number of simultaneous broadcasts.
Check if the broadcast is available
-
On the broadcast settings page, under Episodes, click
Embed in site and select thelink
tab. -
Click
Copy.With Cloud Video Player SDK for IFrame, you can specify additional video player management settings and video playback parameters for the HTML page, such as video size and looping, volume, etc.
-
Open a new browser page and paste the obtained URL to the address bar.
-
Click the Play button.