Create a livestream
The only parameter you are required to set is the name of your stream,
but we also highly recommend that you define transcoding profiles
parameter that suits your specific broadcasting configuration.
If you do not define transcoding rendition profiles when creating the
stream, a default set of profiles will be used. These profiles include
240p, 360p, 480p and 720p.
The playback policy is set to public by default for new streams. It can
also be added upon the creation of a new stream by adding
"playbackPolicy": {"type": "jwt"}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Whether the playback policy for an asset or stream is public or signed
Transcode profile
Response
"test_stream"
"de7818e7-610a-4057-8f6f-b785dc1e6f88"
"stream"
User input tags associated with the stream
1587667174725
1
2
Duration of all the source segments, sec
1
Duration of all the transcoded segments, sec
2
1
2
Rate at which sourceBytes increases (bytes/second)
1
Rate at which transcodedBytes increases (bytes/second)
2
If currently active
true
Name of the token used to create this object
"abc-123-xyz-456"
Timestamp (in milliseconds) at which stream object was created
1587667174725
Points to parent stream object
"de7818e7-610a-4057-8f6f-b785dc1e6f88"
Used to form RTMP ingest URL
"hgebdhhigq"
Configuration for a stream that should be actively pulled from an external source, rather than pushed to Livepeer. If specified, the stream will not have a streamKey.
The playback ID to use with the Playback Info endpoint to retrieve playback URLs.
"eaw4nk06ts2d0mzb"
Whether the playback policy for an asset or stream is public or signed
Profiles to transcode the stream into. If not specified, a default set of profiles will be used with 240p, 360p, 480p and 720p resolutions. Keep in mind that the source rendition is always kept.
Transcode profile
The ID of the project
"aac12556-4d65-4d34-9fb6-d1f0985eb0a9"
Should this stream be recorded? Uses default settings. For more customization, create and configure an object store.
false
Configuration for recording the stream. This can only be set if
record
is true.
If currently suspended
Timestamp (in milliseconds) when the stream was last terminated
1713281212993
"we7818e7-610a-4057-8f6f-b785dc1e6f88"
Was this page helpful?