Resource: LiveStream
A liveStream resource contains information about the video stream that you are transmitting to YouTube. The stream provides the content that is broadcast to YouTube users. Once created, a liveStream resource can be bound to one or more liveBroadcast resources.
| JSON representation |
|---|
{ "kind": string, "etag": string, "id": string, "snippet": { "publishedAt": string, "channelId": string, "title": string, "description": string, "isDefaultStream": boolean }, "cdn": { "format": string, "ingestionType": enum, "ingestionInfo": { "streamName": string, "ingestionAddress": string, "backupIngestionAddress": string, "rtmpsIngestionAddress": string, "rtmpsBackupIngestionAddress": string }, "resolution": enum, "frameRate": enum }, "status": { "streamStatus": enum, "healthStatus": { "status": enum, "lastUpdateTimeSeconds": string, "configurationIssues": [ { "type": enum, "severity": enum, "reason": string, "description": string } ] } }, "contentDetails": { "closedCaptionsIngestionUrl": string, "isReusable": boolean } } |
| Fields | |
|---|---|
kind |
Output only. Identifies what kind of resource this is. Value: the fixed string |
etag |
Output only. Etag of this resource. |
id |
The ID that YouTube assigns to uniquely identify the stream. |
snippet |
The |
snippet.publishedAt |
Output only. The date and time that the stream was created. The value is specified in ISO 8601 ( |
snippet.channelId |
Output only. The ID that YouTube uses to uniquely identify the channel that is transmitting the stream. |
snippet.title |
The stream's title. The value must be between 1 and 128 characters long and can't contain |
snippet.description |
The stream's description. The value can't exceed 10,000 bytes (UTF-8 encoded) and can't contain |
snippet.isDefaultStream |
Output only. Deprecated: Indicates whether this stream is the channel's default stream. YouTube stopped creating default streams in October 2020, so this value is |
cdn |
The |
cdn.format |
Deprecated: No longer supported; any supplied value is ignored. Use |
cdn.ingestionType |
The method or protocol used to transmit the video stream. The Valid values of this enum field are:
|
cdn.ingestionInfo |
Output only. The |
cdn.ingestionInfo.streamName |
Output only. The stream name that YouTube assigns to the video stream. |
cdn.ingestionInfo.ingestionAddress |
Output only. The primary ingestion URL that you should use to stream video to YouTube if you use RTMP, DASH, or HLS. You must stream video to this URL. Depending on which application or tool you use to encode your video stream, you may need to enter the stream URL and stream name separately or concatenate them in the format |
cdn.ingestionInfo.backupIngestionAddress |
Output only. The backup ingestion URL that you should use to stream video to YouTube if you use RTMP, DASH, or HLS. You have the option of simultaneously streaming the content that you are sending to |
cdn.ingestionInfo.rtmpsIngestionAddress |
Output only. The primary ingestion URL that you should use to stream video to YouTube instead of Depending on which application or tool you use to encode your video stream, you may need to enter the stream URL and stream name separately or concatenate them in the format |
cdn.ingestionInfo.rtmpsBackupIngestionAddress |
Output only. The backup ingestion URL that you should use to stream video to YouTube instead of |
cdn.resolution |
The resolution of the inbound video data. Set this property to Valid values of this enum field are:
|
cdn.frameRate |
The frame rate of the inbound video data. Set this property to Valid values of this enum field are:
|
status |
The |
status.streamStatus |
Output only. The stream's status. The API returns Valid values of this enum field are:
|
status.healthStatus |
Output only. Contains information about the live stream's health status, which helps identify, diagnose, and resolve streaming problems. |
status.healthStatus.status |
Output only. The health status code of the stream. Live health data is populated only when Valid values of this enum field are:
|
status.healthStatus.lastUpdateTimeSeconds |
Output only. The last time that the stream's health status was updated, as a UNIX timestamp in seconds. The API doesn't populate this field. |
status.healthStatus.configurationIssues[] |
Output only. A list of configuration issues affecting the stream. |
status.healthStatus.configurationIssues[].type |
Output only. Identifies the type of configuration issue affecting the stream. See Configuration Issues for LiveStream Resources for issue details. The Valid values of this enum field are:
|
status.healthStatus.configurationIssues[].severity |
Output only. Indicates how severe the issue is to the stream. Valid values of this enum field are:
|
status.healthStatus.configurationIssues[].reason |
Output only. A short description of the issue. See Configuration Issues for LiveStream Resources for the reason associated with each issue type. |
status.healthStatus.configurationIssues[].description |
Output only. A detailed description of the issue and, when possible, how to resolve it. See Configuration Issues for LiveStream Resources for details. |
contentDetails |
The |
contentDetails.closedCaptionsIngestionUrl |
Output only. The ingestion URL where the closed captions of this stream are sent. |
contentDetails.isReusable |
Indicates whether the stream is reusable, which means that it can be bound to multiple broadcasts. It is common for broadcasters to reuse the same stream for many different broadcasts if those broadcasts occur at different times. The default value is If you set this value to
|
Methods |
|
|---|---|
|
Deletes a video stream. |
|
Creates a video stream. |
|
Returns a list of video streams that match the API request parameters. |
|
Updates a video stream. |