Skip to main content

kit_livestreams

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

Overview

Namekit_livestreams
TypeResource
Idcloudflare.realtime_kit.kit_livestreams

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
dataobject
successboolean

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_accountselectaccount_id, app_id, livestream_idpage_no, per_pageReturns details of a livestream with sessions for the given livestream ID. Retreive the livestream ID using the Start livestreaming a meeting API.
listselectaccount_id, app_idexclude_meetings, per_page, page_no, status, start_time, end_time, sort_orderReturns details of livestreams associated with the given App ID. It includes livestreams created by your App and RealtimeKit meetings that are livestreamed by your App. If you only want details of livestreams created by your App and not RealtimeKit meetings, you can use the exclude_meetings query parameter.

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.
livestream_idstring
end_timestring (date-time)Specify the end time range in ISO format to access the live stream.
exclude_meetingsbooleanExclude the RealtimeKit meetings that are livestreamed.
page_nointegerThe page number from which you want your page search results to be displayed.
per_pageintegerNumber of results per page.
sort_orderstringSpecifies the sorting order for the results.
start_timestring (date-time)Specify the start time range in ISO format to access the live stream.
statusstringSpecifies the status of the operation.

SELECT examples

Returns details of a livestream with sessions for the given livestream ID. Retreive the livestream ID using the Start livestreaming a meeting API.

SELECT
data,
success
FROM cloudflare.realtime_kit.kit_livestreams
WHERE account_id = '{{ account_id }}' -- required
AND app_id = '{{ app_id }}' -- required
AND livestream_id = '{{ livestream_id }}' -- required
AND page_no = '{{ page_no }}'
AND per_page = '{{ per_page }}'
;