1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="youtube_v3.html">YouTube Data API v3</a> . <a href="youtube_v3.liveStreams.html">liveStreams</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#close">close()</a></code></p> 79<p class="firstline">Close httplib2 connections.</p> 80<p class="toc_element"> 81 <code><a href="#delete">delete(id, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, x__xgafv=None)</a></code></p> 82<p class="firstline">Deletes an existing stream for the authenticated user.</p> 83<p class="toc_element"> 84 <code><a href="#insert">insert(part, body=None, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, x__xgafv=None)</a></code></p> 85<p class="firstline">Inserts a new stream for the authenticated user.</p> 86<p class="toc_element"> 87 <code><a href="#list">list(part, id=None, maxResults=None, mine=None, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, pageToken=None, x__xgafv=None)</a></code></p> 88<p class="firstline">Retrieve the list of streams associated with the given channel. --</p> 89<p class="toc_element"> 90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 91<p class="firstline">Retrieves the next page of results.</p> 92<p class="toc_element"> 93 <code><a href="#update">update(part, body=None, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, x__xgafv=None)</a></code></p> 94<p class="firstline">Updates an existing stream for the authenticated user.</p> 95<h3>Method Details</h3> 96<div class="method"> 97 <code class="details" id="close">close()</code> 98 <pre>Close httplib2 connections.</pre> 99</div> 100 101<div class="method"> 102 <code class="details" id="delete">delete(id, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, x__xgafv=None)</code> 103 <pre>Deletes an existing stream for the authenticated user. 104 105Args: 106 id: string, A parameter (required) 107 onBehalfOfContentOwner: string, *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. 108 onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. 109 x__xgafv: string, V1 error format. 110 Allowed values 111 1 - v1 error format 112 2 - v2 error format 113</pre> 114</div> 115 116<div class="method"> 117 <code class="details" id="insert">insert(part, body=None, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, x__xgafv=None)</code> 118 <pre>Inserts a new stream for the authenticated user. 119 120Args: 121 part: string, The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, content_details, and status. (required) (repeated) 122 body: object, The request body. 123 The object takes the form of: 124 125{ # A live stream describes a live ingestion point. 126 "cdn": { # Brief description of the live stream cdn settings. # The cdn object defines the live stream's content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube. 127 "format": "A String", # The format of the video stream that you are sending to Youtube. 128 "frameRate": "A String", # The frame rate of the inbound video data. 129 "ingestionInfo": { # Describes information necessary for ingesting an RTMP or an HTTP stream. # The ingestionInfo object contains information that YouTube provides that you need to transmit your RTMP or HTTP stream to YouTube. 130 "backupIngestionAddress": "A String", # The backup ingestion URL that you should use to stream video to YouTube. You have the option of simultaneously streaming the content that you are sending to the ingestionAddress to this URL. 131 "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. 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 you may need to concatenate them in the following format: *STREAM_URL/STREAM_NAME* 132 "rtmpsBackupIngestionAddress": "A String", # This ingestion url may be used instead of backupIngestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams. 133 "rtmpsIngestionAddress": "A String", # This ingestion url may be used instead of ingestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams. 134 "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream. 135 }, 136 "ingestionType": "A String", # The method or protocol used to transmit the video stream. 137 "resolution": "A String", # The resolution of the inbound video data. 138 }, 139 "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL. 140 "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent. 141 "isReusable": True or False, # 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. If you set this value to false, then the stream will not be reusable, which means that it can only be bound to one broadcast. Non-reusable streams differ from reusable streams in the following ways: - A non-reusable stream can only be bound to one broadcast. - A non-reusable stream might be deleted by an automated process after the broadcast ends. - The liveStreams.list method does not list non-reusable streams if you call the method and set the mine parameter to true. The only way to use that method to retrieve the resource for a non-reusable stream is to use the id parameter to identify the stream. 142 }, 143 "etag": "A String", # Etag of this resource. 144 "id": "A String", # The ID that YouTube assigns to uniquely identify the stream. 145 "kind": "youtube#liveStream", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveStream". 146 "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description. 147 "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream. 148 "description": "A String", # The stream's description. The value cannot be longer than 10000 characters. 149 "isDefaultStream": True or False, 150 "publishedAt": "A String", # The date and time that the stream was created. 151 "title": "A String", # The stream's title. The value must be between 1 and 128 characters long. 152 }, 153 "status": { # Brief description of the live stream status. # The status object contains information about live stream's status. 154 "healthStatus": { # The health status of the stream. 155 "configurationIssues": [ # The configurations issues on this stream 156 { 157 "description": "A String", # The long-form description of the issue and how to resolve it. 158 "reason": "A String", # The short-form reason for this issue. 159 "severity": "A String", # How severe this issue is to the stream. 160 "type": "A String", # The kind of error happening. 161 }, 162 ], 163 "lastUpdateTimeSeconds": "A String", # The last time this status was updated (in seconds) 164 "status": "A String", # The status code of this stream 165 }, 166 "streamStatus": "A String", 167 }, 168} 169 170 onBehalfOfContentOwner: string, *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. 171 onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. 172 x__xgafv: string, V1 error format. 173 Allowed values 174 1 - v1 error format 175 2 - v2 error format 176 177Returns: 178 An object of the form: 179 180 { # A live stream describes a live ingestion point. 181 "cdn": { # Brief description of the live stream cdn settings. # The cdn object defines the live stream's content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube. 182 "format": "A String", # The format of the video stream that you are sending to Youtube. 183 "frameRate": "A String", # The frame rate of the inbound video data. 184 "ingestionInfo": { # Describes information necessary for ingesting an RTMP or an HTTP stream. # The ingestionInfo object contains information that YouTube provides that you need to transmit your RTMP or HTTP stream to YouTube. 185 "backupIngestionAddress": "A String", # The backup ingestion URL that you should use to stream video to YouTube. You have the option of simultaneously streaming the content that you are sending to the ingestionAddress to this URL. 186 "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. 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 you may need to concatenate them in the following format: *STREAM_URL/STREAM_NAME* 187 "rtmpsBackupIngestionAddress": "A String", # This ingestion url may be used instead of backupIngestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams. 188 "rtmpsIngestionAddress": "A String", # This ingestion url may be used instead of ingestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams. 189 "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream. 190 }, 191 "ingestionType": "A String", # The method or protocol used to transmit the video stream. 192 "resolution": "A String", # The resolution of the inbound video data. 193 }, 194 "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL. 195 "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent. 196 "isReusable": True or False, # 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. If you set this value to false, then the stream will not be reusable, which means that it can only be bound to one broadcast. Non-reusable streams differ from reusable streams in the following ways: - A non-reusable stream can only be bound to one broadcast. - A non-reusable stream might be deleted by an automated process after the broadcast ends. - The liveStreams.list method does not list non-reusable streams if you call the method and set the mine parameter to true. The only way to use that method to retrieve the resource for a non-reusable stream is to use the id parameter to identify the stream. 197 }, 198 "etag": "A String", # Etag of this resource. 199 "id": "A String", # The ID that YouTube assigns to uniquely identify the stream. 200 "kind": "youtube#liveStream", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveStream". 201 "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description. 202 "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream. 203 "description": "A String", # The stream's description. The value cannot be longer than 10000 characters. 204 "isDefaultStream": True or False, 205 "publishedAt": "A String", # The date and time that the stream was created. 206 "title": "A String", # The stream's title. The value must be between 1 and 128 characters long. 207 }, 208 "status": { # Brief description of the live stream status. # The status object contains information about live stream's status. 209 "healthStatus": { # The health status of the stream. 210 "configurationIssues": [ # The configurations issues on this stream 211 { 212 "description": "A String", # The long-form description of the issue and how to resolve it. 213 "reason": "A String", # The short-form reason for this issue. 214 "severity": "A String", # How severe this issue is to the stream. 215 "type": "A String", # The kind of error happening. 216 }, 217 ], 218 "lastUpdateTimeSeconds": "A String", # The last time this status was updated (in seconds) 219 "status": "A String", # The status code of this stream 220 }, 221 "streamStatus": "A String", 222 }, 223}</pre> 224</div> 225 226<div class="method"> 227 <code class="details" id="list">list(part, id=None, maxResults=None, mine=None, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, pageToken=None, x__xgafv=None)</code> 228 <pre>Retrieve the list of streams associated with the given channel. -- 229 230Args: 231 part: string, The *part* parameter specifies a comma-separated list of one or more liveStream resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, cdn, and status. (required) (repeated) 232 id: string, Return LiveStreams with the given ids from Stubby or Apiary. (repeated) 233 maxResults: integer, The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. 234 mine: boolean, A parameter 235 onBehalfOfContentOwner: string, *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. 236 onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. 237 pageToken: string, The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. 238 x__xgafv: string, V1 error format. 239 Allowed values 240 1 - v1 error format 241 2 - v2 error format 242 243Returns: 244 An object of the form: 245 246 { 247 "etag": "A String", # Etag of this resource. 248 "eventId": "A String", # Serialized EventId of the request which produced this response. 249 "items": [ # A list of live streams that match the request criteria. 250 { # A live stream describes a live ingestion point. 251 "cdn": { # Brief description of the live stream cdn settings. # The cdn object defines the live stream's content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube. 252 "format": "A String", # The format of the video stream that you are sending to Youtube. 253 "frameRate": "A String", # The frame rate of the inbound video data. 254 "ingestionInfo": { # Describes information necessary for ingesting an RTMP or an HTTP stream. # The ingestionInfo object contains information that YouTube provides that you need to transmit your RTMP or HTTP stream to YouTube. 255 "backupIngestionAddress": "A String", # The backup ingestion URL that you should use to stream video to YouTube. You have the option of simultaneously streaming the content that you are sending to the ingestionAddress to this URL. 256 "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. 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 you may need to concatenate them in the following format: *STREAM_URL/STREAM_NAME* 257 "rtmpsBackupIngestionAddress": "A String", # This ingestion url may be used instead of backupIngestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams. 258 "rtmpsIngestionAddress": "A String", # This ingestion url may be used instead of ingestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams. 259 "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream. 260 }, 261 "ingestionType": "A String", # The method or protocol used to transmit the video stream. 262 "resolution": "A String", # The resolution of the inbound video data. 263 }, 264 "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL. 265 "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent. 266 "isReusable": True or False, # 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. If you set this value to false, then the stream will not be reusable, which means that it can only be bound to one broadcast. Non-reusable streams differ from reusable streams in the following ways: - A non-reusable stream can only be bound to one broadcast. - A non-reusable stream might be deleted by an automated process after the broadcast ends. - The liveStreams.list method does not list non-reusable streams if you call the method and set the mine parameter to true. The only way to use that method to retrieve the resource for a non-reusable stream is to use the id parameter to identify the stream. 267 }, 268 "etag": "A String", # Etag of this resource. 269 "id": "A String", # The ID that YouTube assigns to uniquely identify the stream. 270 "kind": "youtube#liveStream", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveStream". 271 "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description. 272 "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream. 273 "description": "A String", # The stream's description. The value cannot be longer than 10000 characters. 274 "isDefaultStream": True or False, 275 "publishedAt": "A String", # The date and time that the stream was created. 276 "title": "A String", # The stream's title. The value must be between 1 and 128 characters long. 277 }, 278 "status": { # Brief description of the live stream status. # The status object contains information about live stream's status. 279 "healthStatus": { # The health status of the stream. 280 "configurationIssues": [ # The configurations issues on this stream 281 { 282 "description": "A String", # The long-form description of the issue and how to resolve it. 283 "reason": "A String", # The short-form reason for this issue. 284 "severity": "A String", # How severe this issue is to the stream. 285 "type": "A String", # The kind of error happening. 286 }, 287 ], 288 "lastUpdateTimeSeconds": "A String", # The last time this status was updated (in seconds) 289 "status": "A String", # The status code of this stream 290 }, 291 "streamStatus": "A String", 292 }, 293 }, 294 ], 295 "kind": "youtube#liveStreamListResponse", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveStreamListResponse". 296 "nextPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set. 297 "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page. 298 "resultsPerPage": 42, # The number of results included in the API response. 299 "totalResults": 42, # The total number of results in the result set. 300 }, 301 "prevPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set. 302 "tokenPagination": { # Stub token pagination template to suppress results. 303 }, 304 "visitorId": "A String", # The visitorId identifies the visitor. 305}</pre> 306</div> 307 308<div class="method"> 309 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 310 <pre>Retrieves the next page of results. 311 312Args: 313 previous_request: The request for the previous page. (required) 314 previous_response: The response from the request for the previous page. (required) 315 316Returns: 317 A request object that you can call 'execute()' on to request the next 318 page. Returns None if there are no more items in the collection. 319 </pre> 320</div> 321 322<div class="method"> 323 <code class="details" id="update">update(part, body=None, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, x__xgafv=None)</code> 324 <pre>Updates an existing stream for the authenticated user. 325 326Args: 327 part: string, The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. If the request body does not specify a value for a mutable property, the existing value for that property will be removed. (required) (repeated) 328 body: object, The request body. 329 The object takes the form of: 330 331{ # A live stream describes a live ingestion point. 332 "cdn": { # Brief description of the live stream cdn settings. # The cdn object defines the live stream's content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube. 333 "format": "A String", # The format of the video stream that you are sending to Youtube. 334 "frameRate": "A String", # The frame rate of the inbound video data. 335 "ingestionInfo": { # Describes information necessary for ingesting an RTMP or an HTTP stream. # The ingestionInfo object contains information that YouTube provides that you need to transmit your RTMP or HTTP stream to YouTube. 336 "backupIngestionAddress": "A String", # The backup ingestion URL that you should use to stream video to YouTube. You have the option of simultaneously streaming the content that you are sending to the ingestionAddress to this URL. 337 "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. 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 you may need to concatenate them in the following format: *STREAM_URL/STREAM_NAME* 338 "rtmpsBackupIngestionAddress": "A String", # This ingestion url may be used instead of backupIngestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams. 339 "rtmpsIngestionAddress": "A String", # This ingestion url may be used instead of ingestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams. 340 "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream. 341 }, 342 "ingestionType": "A String", # The method or protocol used to transmit the video stream. 343 "resolution": "A String", # The resolution of the inbound video data. 344 }, 345 "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL. 346 "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent. 347 "isReusable": True or False, # 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. If you set this value to false, then the stream will not be reusable, which means that it can only be bound to one broadcast. Non-reusable streams differ from reusable streams in the following ways: - A non-reusable stream can only be bound to one broadcast. - A non-reusable stream might be deleted by an automated process after the broadcast ends. - The liveStreams.list method does not list non-reusable streams if you call the method and set the mine parameter to true. The only way to use that method to retrieve the resource for a non-reusable stream is to use the id parameter to identify the stream. 348 }, 349 "etag": "A String", # Etag of this resource. 350 "id": "A String", # The ID that YouTube assigns to uniquely identify the stream. 351 "kind": "youtube#liveStream", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveStream". 352 "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description. 353 "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream. 354 "description": "A String", # The stream's description. The value cannot be longer than 10000 characters. 355 "isDefaultStream": True or False, 356 "publishedAt": "A String", # The date and time that the stream was created. 357 "title": "A String", # The stream's title. The value must be between 1 and 128 characters long. 358 }, 359 "status": { # Brief description of the live stream status. # The status object contains information about live stream's status. 360 "healthStatus": { # The health status of the stream. 361 "configurationIssues": [ # The configurations issues on this stream 362 { 363 "description": "A String", # The long-form description of the issue and how to resolve it. 364 "reason": "A String", # The short-form reason for this issue. 365 "severity": "A String", # How severe this issue is to the stream. 366 "type": "A String", # The kind of error happening. 367 }, 368 ], 369 "lastUpdateTimeSeconds": "A String", # The last time this status was updated (in seconds) 370 "status": "A String", # The status code of this stream 371 }, 372 "streamStatus": "A String", 373 }, 374} 375 376 onBehalfOfContentOwner: string, *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. 377 onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. 378 x__xgafv: string, V1 error format. 379 Allowed values 380 1 - v1 error format 381 2 - v2 error format 382 383Returns: 384 An object of the form: 385 386 { # A live stream describes a live ingestion point. 387 "cdn": { # Brief description of the live stream cdn settings. # The cdn object defines the live stream's content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube. 388 "format": "A String", # The format of the video stream that you are sending to Youtube. 389 "frameRate": "A String", # The frame rate of the inbound video data. 390 "ingestionInfo": { # Describes information necessary for ingesting an RTMP or an HTTP stream. # The ingestionInfo object contains information that YouTube provides that you need to transmit your RTMP or HTTP stream to YouTube. 391 "backupIngestionAddress": "A String", # The backup ingestion URL that you should use to stream video to YouTube. You have the option of simultaneously streaming the content that you are sending to the ingestionAddress to this URL. 392 "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. 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 you may need to concatenate them in the following format: *STREAM_URL/STREAM_NAME* 393 "rtmpsBackupIngestionAddress": "A String", # This ingestion url may be used instead of backupIngestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams. 394 "rtmpsIngestionAddress": "A String", # This ingestion url may be used instead of ingestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams. 395 "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream. 396 }, 397 "ingestionType": "A String", # The method or protocol used to transmit the video stream. 398 "resolution": "A String", # The resolution of the inbound video data. 399 }, 400 "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL. 401 "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent. 402 "isReusable": True or False, # 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. If you set this value to false, then the stream will not be reusable, which means that it can only be bound to one broadcast. Non-reusable streams differ from reusable streams in the following ways: - A non-reusable stream can only be bound to one broadcast. - A non-reusable stream might be deleted by an automated process after the broadcast ends. - The liveStreams.list method does not list non-reusable streams if you call the method and set the mine parameter to true. The only way to use that method to retrieve the resource for a non-reusable stream is to use the id parameter to identify the stream. 403 }, 404 "etag": "A String", # Etag of this resource. 405 "id": "A String", # The ID that YouTube assigns to uniquely identify the stream. 406 "kind": "youtube#liveStream", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveStream". 407 "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description. 408 "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream. 409 "description": "A String", # The stream's description. The value cannot be longer than 10000 characters. 410 "isDefaultStream": True or False, 411 "publishedAt": "A String", # The date and time that the stream was created. 412 "title": "A String", # The stream's title. The value must be between 1 and 128 characters long. 413 }, 414 "status": { # Brief description of the live stream status. # The status object contains information about live stream's status. 415 "healthStatus": { # The health status of the stream. 416 "configurationIssues": [ # The configurations issues on this stream 417 { 418 "description": "A String", # The long-form description of the issue and how to resolve it. 419 "reason": "A String", # The short-form reason for this issue. 420 "severity": "A String", # How severe this issue is to the stream. 421 "type": "A String", # The kind of error happening. 422 }, 423 ], 424 "lastUpdateTimeSeconds": "A String", # The last time this status was updated (in seconds) 425 "status": "A String", # The status code of this stream 426 }, 427 "streamStatus": "A String", 428 }, 429}</pre> 430</div> 431 432</body></html>