POST multistream target
POST /multistream/target creates a multistream target object.
Parameters
Required
The only parameter you are required to set is the
urlof your target.The
namewill be derived from theurlhost, if not specified.
Note: Creating only a
multistream targetis not sufficient to start multistreaming. You also need to reference the target from thestreamthat you want to streamed.
You can also refer to the Multistreams guide for more information.
Example Request
Create and name a multistream target, and reference the target from the
stream that you want to streamed.
Request
- curl
curl -X POST 'https://livepeer.studio/api/multistream/target' \
-H 'content-type: application/json' \
-H 'authorization: Bearer {api-key}' \
-d '{
"name": "My Multistream Target",
"url": "rtmp://rtmp.streaming.tv/live/SECRET"
}'
Response
201 Created
{
"id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaa",
"userId": "bbbbbbbb-bbbb-bbbb-bbbb-bbbb",
"name": "My Multistream Target",
"url": "rtmp://rtmp.streaming.tv/live/SECRET"
}