Stream - Stream live inputs can now be disabled and enabled
Key Points
- Disable/enable live inputs
- Reject RTMPS and SRT connections
- API and Dashboard controls
Summary
Cloudflare Stream now supports disabling and enabling live inputs. When a live input is disabled, incoming RTMPS and SRT connections are rejected and broadcast attempts will fail to connect. This lets you temporarily pause inputs without deleting them, programmatically end creator broadcasts, or prevent new broadcasts on a specific input.
Key Points
- Behavior: Disabled inputs reject RTMPS and SRT connections; existing inputs remain enabled by default.
- Use cases: pause an input, stop a creator broadcast, or block new broadcasts on an input.
- API: set the
enabledproperty tofalseon the live input resource.
Example curl (disable input):
curl --request PUT \
"https://api.cloudflare.com/client/v4/accounts/{account_id}/stream/live_inputs/{input_id}" \
--header "Authorization: Bearer <API_TOKEN>" \
--header "Content-Type: application/json" \
--data '{"enabled": false}'
- Dashboard: you can also disable/enable inputs from the Live inputs list or the live input detail page.
- See the "Start a live stream" documentation for full live input details and workflows.