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</a> . <a href="youtube_v3.liveStreams.html">liveStreams</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#delete">delete(id, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</a></code></p>
79<p class="firstline">Deletes a video stream.</p>
80<p class="toc_element">
81  <code><a href="#insert">insert(part, body, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</a></code></p>
82<p class="firstline">Creates a video stream. The stream enables you to send your video to YouTube, which can then broadcast the video to your audience.</p>
83<p class="toc_element">
84  <code><a href="#list">list(part, onBehalfOfContentOwner=None, pageToken=None, onBehalfOfContentOwnerChannel=None, maxResults=None, mine=None, id=None)</a></code></p>
85<p class="firstline">Returns a list of video streams that match the API request parameters.</p>
86<p class="toc_element">
87  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<p class="toc_element">
90  <code><a href="#update">update(part, body, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</a></code></p>
91<p class="firstline">Updates a video stream. If the properties that you want to change cannot be updated, then you need to create a new stream with the proper settings.</p>
92<h3>Method Details</h3>
93<div class="method">
94    <code class="details" id="delete">delete(id, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</code>
95  <pre>Deletes a video stream.
96
97Args:
98  id: string, The id parameter specifies the YouTube live stream ID for the resource that is being deleted. (required)
99  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
100
101The 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.
102  onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
103
104The 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.
105
106This 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.
107</pre>
108</div>
109
110<div class="method">
111    <code class="details" id="insert">insert(part, body, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</code>
112  <pre>Creates a video stream. The stream enables you to send your video to YouTube, which can then broadcast the video to your audience.
113
114Args:
115  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.
116
117The part properties that you can include in the parameter value are id, snippet, cdn, and status. (required)
118  body: object, The request body. (required)
119    The object takes the form of:
120
121{ # A live stream describes a live ingestion point.
122    "status": { # Brief description of the live stream status. # The status object contains information about live stream's status.
123      "streamStatus": "A String",
124      "healthStatus": { # The health status of the stream.
125        "status": "A String", # The status code of this stream
126        "configurationIssues": [ # The configurations issues on this stream
127          {
128            "reason": "A String", # The short-form reason for this issue.
129            "type": "A String", # The kind of error happening.
130            "description": "A String", # The long-form description of the issue and how to resolve it.
131            "severity": "A String", # How severe this issue is to the stream.
132          },
133        ],
134        "lastUpdateTimeSeconds": "A String", # The last time this status was updated (in seconds)
135      },
136    },
137    "kind": "youtube#liveStream", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveStream".
138    "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
139      "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.
140          #
141          # 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:
142          # - A non-reusable stream can only be bound to one broadcast.
143          # - A non-reusable stream might be deleted by an automated process after the broadcast ends.
144          # - 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.
145      "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent.
146    },
147    "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.
148      "ingestionType": "A String", # The method or protocol used to transmit the video stream.
149      "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.
150        "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.
151        "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream.
152        "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. You must stream video to this URL.
153            #
154            # 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:
155            #
156            # STREAM_URL/STREAM_NAME
157      },
158      "frameRate": "A String", # The frame rate of the inbound video data.
159      "resolution": "A String", # The resolution of the inbound video data.
160      "format": "A String", # The format of the video stream that you are sending to Youtube.
161    },
162    "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description.
163      "isDefaultStream": True or False,
164      "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
165      "description": "A String", # The stream's description. The value cannot be longer than 10000 characters.
166      "publishedAt": "A String", # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
167      "title": "A String", # The stream's title. The value must be between 1 and 128 characters long.
168    },
169    "etag": "A String", # Etag of this resource.
170    "id": "A String", # The ID that YouTube assigns to uniquely identify the stream.
171  }
172
173  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
174
175The 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.
176  onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
177
178The 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.
179
180This 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.
181
182Returns:
183  An object of the form:
184
185    { # A live stream describes a live ingestion point.
186      "status": { # Brief description of the live stream status. # The status object contains information about live stream's status.
187        "streamStatus": "A String",
188        "healthStatus": { # The health status of the stream.
189          "status": "A String", # The status code of this stream
190          "configurationIssues": [ # The configurations issues on this stream
191            {
192              "reason": "A String", # The short-form reason for this issue.
193              "type": "A String", # The kind of error happening.
194              "description": "A String", # The long-form description of the issue and how to resolve it.
195              "severity": "A String", # How severe this issue is to the stream.
196            },
197          ],
198          "lastUpdateTimeSeconds": "A String", # The last time this status was updated (in seconds)
199        },
200      },
201      "kind": "youtube#liveStream", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveStream".
202      "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
203        "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.
204            #
205            # 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:
206            # - A non-reusable stream can only be bound to one broadcast.
207            # - A non-reusable stream might be deleted by an automated process after the broadcast ends.
208            # - 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.
209        "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent.
210      },
211      "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.
212        "ingestionType": "A String", # The method or protocol used to transmit the video stream.
213        "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.
214          "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.
215          "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream.
216          "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. You must stream video to this URL.
217              #
218              # 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:
219              #
220              # STREAM_URL/STREAM_NAME
221        },
222        "frameRate": "A String", # The frame rate of the inbound video data.
223        "resolution": "A String", # The resolution of the inbound video data.
224        "format": "A String", # The format of the video stream that you are sending to Youtube.
225      },
226      "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description.
227        "isDefaultStream": True or False,
228        "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
229        "description": "A String", # The stream's description. The value cannot be longer than 10000 characters.
230        "publishedAt": "A String", # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
231        "title": "A String", # The stream's title. The value must be between 1 and 128 characters long.
232      },
233      "etag": "A String", # Etag of this resource.
234      "id": "A String", # The ID that YouTube assigns to uniquely identify the stream.
235    }</pre>
236</div>
237
238<div class="method">
239    <code class="details" id="list">list(part, onBehalfOfContentOwner=None, pageToken=None, onBehalfOfContentOwnerChannel=None, maxResults=None, mine=None, id=None)</code>
240  <pre>Returns a list of video streams that match the API request parameters.
241
242Args:
243  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)
244  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
245
246The 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.
247  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.
248  onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
249
250The 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.
251
252This 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.
253  maxResults: integer, The maxResults parameter specifies the maximum number of items that should be returned in the result set.
254  mine: boolean, The mine parameter can be used to instruct the API to only return streams owned by the authenticated user. Set the parameter value to true to only retrieve your own streams.
255  id: string, The id parameter specifies a comma-separated list of YouTube stream IDs that identify the streams being retrieved. In a liveStream resource, the id property specifies the stream's ID.
256
257Returns:
258  An object of the form:
259
260    {
261    "eventId": "A String", # Serialized EventId of the request which produced this response.
262    "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.
263    "kind": "youtube#liveStreamListResponse", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveStreamListResponse".
264    "visitorId": "A String", # The visitorId identifies the visitor.
265    "items": [ # A list of live streams that match the request criteria.
266      { # A live stream describes a live ingestion point.
267          "status": { # Brief description of the live stream status. # The status object contains information about live stream's status.
268            "streamStatus": "A String",
269            "healthStatus": { # The health status of the stream.
270              "status": "A String", # The status code of this stream
271              "configurationIssues": [ # The configurations issues on this stream
272                {
273                  "reason": "A String", # The short-form reason for this issue.
274                  "type": "A String", # The kind of error happening.
275                  "description": "A String", # The long-form description of the issue and how to resolve it.
276                  "severity": "A String", # How severe this issue is to the stream.
277                },
278              ],
279              "lastUpdateTimeSeconds": "A String", # The last time this status was updated (in seconds)
280            },
281          },
282          "kind": "youtube#liveStream", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveStream".
283          "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
284            "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.
285                #
286                # 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:
287                # - A non-reusable stream can only be bound to one broadcast.
288                # - A non-reusable stream might be deleted by an automated process after the broadcast ends.
289                # - 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.
290            "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent.
291          },
292          "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.
293            "ingestionType": "A String", # The method or protocol used to transmit the video stream.
294            "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.
295              "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.
296              "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream.
297              "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. You must stream video to this URL.
298                  #
299                  # 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:
300                  #
301                  # STREAM_URL/STREAM_NAME
302            },
303            "frameRate": "A String", # The frame rate of the inbound video data.
304            "resolution": "A String", # The resolution of the inbound video data.
305            "format": "A String", # The format of the video stream that you are sending to Youtube.
306          },
307          "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description.
308            "isDefaultStream": True or False,
309            "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
310            "description": "A String", # The stream's description. The value cannot be longer than 10000 characters.
311            "publishedAt": "A String", # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
312            "title": "A String", # The stream's title. The value must be between 1 and 128 characters long.
313          },
314          "etag": "A String", # Etag of this resource.
315          "id": "A String", # The ID that YouTube assigns to uniquely identify the stream.
316        },
317    ],
318    "tokenPagination": { # Stub token pagination template to suppress results.
319    },
320    "etag": "A String", # Etag of this resource.
321    "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.
322    "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page.
323      "totalResults": 42, # The total number of results in the result set.
324      "resultsPerPage": 42, # The number of results included in the API response.
325    },
326  }</pre>
327</div>
328
329<div class="method">
330    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
331  <pre>Retrieves the next page of results.
332
333Args:
334  previous_request: The request for the previous page. (required)
335  previous_response: The response from the request for the previous page. (required)
336
337Returns:
338  A request object that you can call 'execute()' on to request the next
339  page. Returns None if there are no more items in the collection.
340    </pre>
341</div>
342
343<div class="method">
344    <code class="details" id="update">update(part, body, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</code>
345  <pre>Updates a video stream. If the properties that you want to change cannot be updated, then you need to create a new stream with the proper settings.
346
347Args:
348  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.
349
350The part properties that you can include in the parameter value are id, snippet, cdn, and status.
351
352Note 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)
353  body: object, The request body. (required)
354    The object takes the form of:
355
356{ # A live stream describes a live ingestion point.
357    "status": { # Brief description of the live stream status. # The status object contains information about live stream's status.
358      "streamStatus": "A String",
359      "healthStatus": { # The health status of the stream.
360        "status": "A String", # The status code of this stream
361        "configurationIssues": [ # The configurations issues on this stream
362          {
363            "reason": "A String", # The short-form reason for this issue.
364            "type": "A String", # The kind of error happening.
365            "description": "A String", # The long-form description of the issue and how to resolve it.
366            "severity": "A String", # How severe this issue is to the stream.
367          },
368        ],
369        "lastUpdateTimeSeconds": "A String", # The last time this status was updated (in seconds)
370      },
371    },
372    "kind": "youtube#liveStream", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveStream".
373    "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
374      "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.
375          #
376          # 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:
377          # - A non-reusable stream can only be bound to one broadcast.
378          # - A non-reusable stream might be deleted by an automated process after the broadcast ends.
379          # - 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.
380      "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent.
381    },
382    "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.
383      "ingestionType": "A String", # The method or protocol used to transmit the video stream.
384      "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.
385        "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.
386        "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream.
387        "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. You must stream video to this URL.
388            #
389            # 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:
390            #
391            # STREAM_URL/STREAM_NAME
392      },
393      "frameRate": "A String", # The frame rate of the inbound video data.
394      "resolution": "A String", # The resolution of the inbound video data.
395      "format": "A String", # The format of the video stream that you are sending to Youtube.
396    },
397    "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description.
398      "isDefaultStream": True or False,
399      "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
400      "description": "A String", # The stream's description. The value cannot be longer than 10000 characters.
401      "publishedAt": "A String", # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
402      "title": "A String", # The stream's title. The value must be between 1 and 128 characters long.
403    },
404    "etag": "A String", # Etag of this resource.
405    "id": "A String", # The ID that YouTube assigns to uniquely identify the stream.
406  }
407
408  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
409
410The 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.
411  onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
412
413The 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.
414
415This 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.
416
417Returns:
418  An object of the form:
419
420    { # A live stream describes a live ingestion point.
421      "status": { # Brief description of the live stream status. # The status object contains information about live stream's status.
422        "streamStatus": "A String",
423        "healthStatus": { # The health status of the stream.
424          "status": "A String", # The status code of this stream
425          "configurationIssues": [ # The configurations issues on this stream
426            {
427              "reason": "A String", # The short-form reason for this issue.
428              "type": "A String", # The kind of error happening.
429              "description": "A String", # The long-form description of the issue and how to resolve it.
430              "severity": "A String", # How severe this issue is to the stream.
431            },
432          ],
433          "lastUpdateTimeSeconds": "A String", # The last time this status was updated (in seconds)
434        },
435      },
436      "kind": "youtube#liveStream", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveStream".
437      "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
438        "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.
439            #
440            # 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:
441            # - A non-reusable stream can only be bound to one broadcast.
442            # - A non-reusable stream might be deleted by an automated process after the broadcast ends.
443            # - 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.
444        "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent.
445      },
446      "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.
447        "ingestionType": "A String", # The method or protocol used to transmit the video stream.
448        "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.
449          "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.
450          "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream.
451          "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. You must stream video to this URL.
452              #
453              # 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:
454              #
455              # STREAM_URL/STREAM_NAME
456        },
457        "frameRate": "A String", # The frame rate of the inbound video data.
458        "resolution": "A String", # The resolution of the inbound video data.
459        "format": "A String", # The format of the video stream that you are sending to Youtube.
460      },
461      "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description.
462        "isDefaultStream": True or False,
463        "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
464        "description": "A String", # The stream's description. The value cannot be longer than 10000 characters.
465        "publishedAt": "A String", # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
466        "title": "A String", # The stream's title. The value must be between 1 and 128 characters long.
467      },
468      "etag": "A String", # Etag of this resource.
469      "id": "A String", # The ID that YouTube assigns to uniquely identify the stream.
470    }</pre>
471</div>
472
473</body></html>