*
for wildcard subdomains. An empty array allows videos to be viewed on any origin.off
to prevent a recording. Set the value to automatic
to begin a recording and transition to on-demand after Stream Live stops receiving input.requireSignedURLs
property set. Also enforces access controls on any video recording of the livestream with the live input.automatic
mode should wait before a recording transitions from live to on-demand. 0
is recommended for most use cases and indicates the platform default should be used.{
"defaultCreator": "string",
"meta": {
"name": "test stream 1"
},
"recording": {
"mode": "off",
"requireSignedURLs": false,
"timeoutSeconds": 0
}
}
curl --location --request POST 'https://api.cloudflare.com/client/v4/accounts//stream/live_inputs' \
--header 'Content-Type: application/json' \
--data-raw '{
"defaultCreator": "string",
"meta": {
"name": "test stream 1"
},
"recording": {
"mode": "off",
"requireSignedURLs": false,
"timeoutSeconds": 0
}
}'
{
"errors": [],
"messages": [],
"result": {},
"success": true
}