Start

Apart from starting the restreaming manually from inside the room UI, you as a integrator can start it programmatically through the API by calling the POST /rooms/:id/restreamers/start endpoint.

The id uniquely identifies the room you want to start restreaming.

Request

curl --request POST \
  --header "Content-Type: application/json" \
  --url https://api.digitalsamba.com/api/v1/rooms/c39d7c40-7ff7-4faa-b06f-698a639a9523/restreamers/start \
  --user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY \
  --data '{"server_url": "rtmps://live.cloudflare.com/live", "stream_key": "................."}'

Response (200 -> OK)

Response is empty because the restreaming was started and there is no content to return.

Last updated