Source Providers

CloudFlare Stream Source

Content Source based on CloudFlare Stream.

The Cloudflare Source feeds data from Cloudflare Stream videos. Based on the multi-instance source workflow it allows connecting to multiple accounts with different configurations.


Settings

The source settings determines the content structure, every time the instance is saved the structure will be regenerated.

Cloudflare Stream Source Configuration
SettingDescriptionRequired
TokenThe Cloudflare API Token which to authenticate with.
AccountThe Cloudflare account which to connecto to.
Signing KeyAn auto-generated key used to signing private videos.

The following settings are common to all source instances.

Source Instance Common Settings
SettingDefaultDescription
NameCloudflare StreamThe name that will identify this source instance.
Default Cache Time3600The default duration in seconds before the cache is renewed, set to 0 to disable caching. This setting can be overriden in each query configuration.

Content Structure

Be cautious, changing certain settings of an instance might affect it content structure and break existing content mappings.


Authentication

Authentication is based on an API Token driven by the Cloudflare API Token Driver.

Cloudflare API Key Driver

Keys Security

Learn more about Essentials Keys security protocols.


Content Queries

For every source instance the following content queries will be made available as Dynamic Content option.

Video Query

Fetches a single video from the authenticated account and resolves to a Video Type.

Cloudflare Stream Video Query
SettingDefaultDescriptionRequired
VideoThe Cloudflare Stream video to create the source from.
Cache3600The duration in seconds before the cache is invalidated and the query re-executed.

Videos Query

Fetches videos from the authenticated account and resolves to a list of Video Type.

Cloudflare Stream Videos Query
SettingDefaultDescription
SearchThe video name search term by which to filter the results.
Since/UntilRestricts the results to videos that have been published within the specified range of dates.
StatusReadyThe status by whic to filter the results, within Ready, Queued, In Progress, Downloading, and Error.
Quantity20The amount of videos to fetch.
Cache3600The duration in seconds before the cache is invalidated and the query re-executed.

Content Types

The content types define the mapping options for the source content.

Video Type

The Video Type defines the mapping options of a Cloudflare Stream Video object.

Cloudflare Stream Video Mapping
OptionDescriptionTypeFilters
IDThe unique identifier of this video.String
TitleThe title of this video.StringLimit
Iframe URLGenerates an iframe URL with Autoplay, Loop, Muted, Controls, and Time arguments.String
Preview URLThe preview URL of this video.String
Playback URLThe streaming playback URL of this video.String
SizeThe formated size of this video.String
DurationThe duration of this video in seconds.Int
WidthThe width of this video in pixels.Int
HeightThe height of this video in pixels.Int
ThumbnailThe path to the dynamically generated and locally cached thumbnail of this video, with Time, Height, Width, and Fit arguments.String
Thumbnail (animated)The path to the dynamically generated and locally cached animated thumbnail of this video, with Time, Height, Width, and Fit arguments.String
Created AtThe time this video was created.StringDate
Modified AtThe time this video was last modified.StringDate
Uploaded AtThe time this video was uploaded.StringDate
Previous
TikTok