Skip to main content

livestreams

Creates, updates, deletes, gets or lists a livestreams resource.

Overview

Namelivestreams
TypeResource
Idcloudflare.realtime_kit.livestreams

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
start_livestreaming_a_meetinginsertmeeting_id, account_id, app_idStarts livestream of a meeting associated with the given meeting ID. Retreive the meeting ID using the Create a meeting API.
create_independent_livestreaminsertaccount_id, app_idCreates a livestream for the given App ID and returns ingest server, stream key, and playback URL. You can pass custom input to the ingest server and stream key, and freely distribute the content using the playback URL on any player that supports HLS/LHLS.
stop_livestreaming_a_meetingexecmeeting_id, account_id, app_idStops the active livestream of a meeting associated with the given meeting ID. Retreive the meeting ID using the Create a meeting API.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
app_idstringThe Access application ID.
meeting_idstringThe Realtime Kit meeting ID.

INSERT examples

Starts livestream of a meeting associated with the given meeting ID. Retreive the meeting ID using the Create a meeting API.

INSERT INTO cloudflare.realtime_kit.livestreams (
name,
video_config,
meeting_id,
account_id,
app_id
)
SELECT
'{{ name }}',
'{{ video_config }}',
'{{ meeting_id }}',
'{{ account_id }}',
'{{ app_id }}'
RETURNING
data,
success
;

Lifecycle Methods

Stops the active livestream of a meeting associated with the given meeting ID. Retreive the meeting ID using the Create a meeting API.

EXEC cloudflare.realtime_kit.livestreams.stop_livestreaming_a_meeting
@meeting_id='{{ meeting_id }}' --required,
@account_id='{{ account_id }}' --required,
@app_id='{{ app_id }}' --required
;