Live stream Creator ID

I am tryin to integrate Cloudflare Stream API but am lost as how to link the live stream to a creator? theres no documentation that shows how to do this with a live stream?

To set the default creator value on recordings, you can set the DefaultCreator property when creating the input:

curl --request POST
–header ‘X-Auth-Email: --’
–header ‘X-Auth-Key: --’
–data ‘{“DefaultCreator”:“1234”}’

We will document this.

1 Like

That helps, but if i have multiple creators simultaneously how will this work? Or will i just send this every time the specific creator makes a live stream?

Typically you would create an Input for each of your creators that do live streaming. This way, you only have to set the DefaultCreator value on the Input once and any recorded video from that creator’s Input will inherit the DefaultCreator value.

1 Like

Can you give me an example of Creation of an input per creator?

A lot of this is missing from documentation. my apologies if this is covered somewhere…

The only reference to --Data i can find for a live stream is below and nothing mentions how to add a creator ID except by putting it in the meta field.

curl -X PUT "" \
     -H "X-Auth-Email: [email protected]" \
     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
     -H "Content-Type: application/json" \
     --data '{"meta":{"name":"test stream 1"},"recording":{"mode":"automatic","requireSignedURLs":true,"allowedOrigins":[""],"timeoutSeconds":0}}'

Setting DefaultCreator is only possible using the API at the moment. We have plans to add it to the UI in the near future.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.