• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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&#x27;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  &quot;cdn&quot;: { # Brief description of the live stream cdn settings. # The cdn object defines the live stream&#x27;s content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube.
127    &quot;format&quot;: &quot;A String&quot;, # The format of the video stream that you are sending to Youtube.
128    &quot;frameRate&quot;: &quot;A String&quot;, # The frame rate of the inbound video data.
129    &quot;ingestionInfo&quot;: { # 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      &quot;backupIngestionAddress&quot;: &quot;A String&quot;, # 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      &quot;ingestionAddress&quot;: &quot;A String&quot;, # 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      &quot;rtmpsBackupIngestionAddress&quot;: &quot;A String&quot;, # This ingestion url may be used instead of backupIngestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams.
133      &quot;rtmpsIngestionAddress&quot;: &quot;A String&quot;, # This ingestion url may be used instead of ingestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams.
134      &quot;streamName&quot;: &quot;A String&quot;, # The HTTP or RTMP stream name that YouTube assigns to the video stream.
135    },
136    &quot;ingestionType&quot;: &quot;A String&quot;, #  The method or protocol used to transmit the video stream.
137    &quot;resolution&quot;: &quot;A String&quot;, # The resolution of the inbound video data.
138  },
139  &quot;contentDetails&quot;: { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
140    &quot;closedCaptionsIngestionUrl&quot;: &quot;A String&quot;, # The ingestion URL where the closed captions of this stream are sent.
141    &quot;isReusable&quot;: 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  &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
144  &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the stream.
145  &quot;kind&quot;: &quot;youtube#liveStream&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveStream&quot;.
146  &quot;snippet&quot;: { # The snippet object contains basic details about the stream, including its channel, title, and description.
147    &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
148    &quot;description&quot;: &quot;A String&quot;, # The stream&#x27;s description. The value cannot be longer than 10000 characters.
149    &quot;isDefaultStream&quot;: True or False,
150    &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the stream was created.
151    &quot;title&quot;: &quot;A String&quot;, # The stream&#x27;s title. The value must be between 1 and 128 characters long.
152  },
153  &quot;status&quot;: { # Brief description of the live stream status. # The status object contains information about live stream&#x27;s status.
154    &quot;healthStatus&quot;: { # The health status of the stream.
155      &quot;configurationIssues&quot;: [ # The configurations issues on this stream
156        {
157          &quot;description&quot;: &quot;A String&quot;, # The long-form description of the issue and how to resolve it.
158          &quot;reason&quot;: &quot;A String&quot;, # The short-form reason for this issue.
159          &quot;severity&quot;: &quot;A String&quot;, # How severe this issue is to the stream.
160          &quot;type&quot;: &quot;A String&quot;, # The kind of error happening.
161        },
162      ],
163      &quot;lastUpdateTimeSeconds&quot;: &quot;A String&quot;, # The last time this status was updated (in seconds)
164      &quot;status&quot;: &quot;A String&quot;, # The status code of this stream
165    },
166    &quot;streamStatus&quot;: &quot;A String&quot;,
167  },
168}
169
170  onBehalfOfContentOwner: string, *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request&#x27;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  &quot;cdn&quot;: { # Brief description of the live stream cdn settings. # The cdn object defines the live stream&#x27;s content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube.
182    &quot;format&quot;: &quot;A String&quot;, # The format of the video stream that you are sending to Youtube.
183    &quot;frameRate&quot;: &quot;A String&quot;, # The frame rate of the inbound video data.
184    &quot;ingestionInfo&quot;: { # 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      &quot;backupIngestionAddress&quot;: &quot;A String&quot;, # 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      &quot;ingestionAddress&quot;: &quot;A String&quot;, # 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      &quot;rtmpsBackupIngestionAddress&quot;: &quot;A String&quot;, # This ingestion url may be used instead of backupIngestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams.
188      &quot;rtmpsIngestionAddress&quot;: &quot;A String&quot;, # This ingestion url may be used instead of ingestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams.
189      &quot;streamName&quot;: &quot;A String&quot;, # The HTTP or RTMP stream name that YouTube assigns to the video stream.
190    },
191    &quot;ingestionType&quot;: &quot;A String&quot;, #  The method or protocol used to transmit the video stream.
192    &quot;resolution&quot;: &quot;A String&quot;, # The resolution of the inbound video data.
193  },
194  &quot;contentDetails&quot;: { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
195    &quot;closedCaptionsIngestionUrl&quot;: &quot;A String&quot;, # The ingestion URL where the closed captions of this stream are sent.
196    &quot;isReusable&quot;: 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  &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
199  &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the stream.
200  &quot;kind&quot;: &quot;youtube#liveStream&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveStream&quot;.
201  &quot;snippet&quot;: { # The snippet object contains basic details about the stream, including its channel, title, and description.
202    &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
203    &quot;description&quot;: &quot;A String&quot;, # The stream&#x27;s description. The value cannot be longer than 10000 characters.
204    &quot;isDefaultStream&quot;: True or False,
205    &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the stream was created.
206    &quot;title&quot;: &quot;A String&quot;, # The stream&#x27;s title. The value must be between 1 and 128 characters long.
207  },
208  &quot;status&quot;: { # Brief description of the live stream status. # The status object contains information about live stream&#x27;s status.
209    &quot;healthStatus&quot;: { # The health status of the stream.
210      &quot;configurationIssues&quot;: [ # The configurations issues on this stream
211        {
212          &quot;description&quot;: &quot;A String&quot;, # The long-form description of the issue and how to resolve it.
213          &quot;reason&quot;: &quot;A String&quot;, # The short-form reason for this issue.
214          &quot;severity&quot;: &quot;A String&quot;, # How severe this issue is to the stream.
215          &quot;type&quot;: &quot;A String&quot;, # The kind of error happening.
216        },
217      ],
218      &quot;lastUpdateTimeSeconds&quot;: &quot;A String&quot;, # The last time this status was updated (in seconds)
219      &quot;status&quot;: &quot;A String&quot;, # The status code of this stream
220    },
221    &quot;streamStatus&quot;: &quot;A String&quot;,
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&#x27;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  &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
248  &quot;eventId&quot;: &quot;A String&quot;, # Serialized EventId of the request which produced this response.
249  &quot;items&quot;: [ # A list of live streams that match the request criteria.
250    { # A live stream describes a live ingestion point.
251      &quot;cdn&quot;: { # Brief description of the live stream cdn settings. # The cdn object defines the live stream&#x27;s content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube.
252        &quot;format&quot;: &quot;A String&quot;, # The format of the video stream that you are sending to Youtube.
253        &quot;frameRate&quot;: &quot;A String&quot;, # The frame rate of the inbound video data.
254        &quot;ingestionInfo&quot;: { # 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          &quot;backupIngestionAddress&quot;: &quot;A String&quot;, # 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          &quot;ingestionAddress&quot;: &quot;A String&quot;, # 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          &quot;rtmpsBackupIngestionAddress&quot;: &quot;A String&quot;, # This ingestion url may be used instead of backupIngestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams.
258          &quot;rtmpsIngestionAddress&quot;: &quot;A String&quot;, # This ingestion url may be used instead of ingestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams.
259          &quot;streamName&quot;: &quot;A String&quot;, # The HTTP or RTMP stream name that YouTube assigns to the video stream.
260        },
261        &quot;ingestionType&quot;: &quot;A String&quot;, #  The method or protocol used to transmit the video stream.
262        &quot;resolution&quot;: &quot;A String&quot;, # The resolution of the inbound video data.
263      },
264      &quot;contentDetails&quot;: { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
265        &quot;closedCaptionsIngestionUrl&quot;: &quot;A String&quot;, # The ingestion URL where the closed captions of this stream are sent.
266        &quot;isReusable&quot;: 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      &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
269      &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the stream.
270      &quot;kind&quot;: &quot;youtube#liveStream&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveStream&quot;.
271      &quot;snippet&quot;: { # The snippet object contains basic details about the stream, including its channel, title, and description.
272        &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
273        &quot;description&quot;: &quot;A String&quot;, # The stream&#x27;s description. The value cannot be longer than 10000 characters.
274        &quot;isDefaultStream&quot;: True or False,
275        &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the stream was created.
276        &quot;title&quot;: &quot;A String&quot;, # The stream&#x27;s title. The value must be between 1 and 128 characters long.
277      },
278      &quot;status&quot;: { # Brief description of the live stream status. # The status object contains information about live stream&#x27;s status.
279        &quot;healthStatus&quot;: { # The health status of the stream.
280          &quot;configurationIssues&quot;: [ # The configurations issues on this stream
281            {
282              &quot;description&quot;: &quot;A String&quot;, # The long-form description of the issue and how to resolve it.
283              &quot;reason&quot;: &quot;A String&quot;, # The short-form reason for this issue.
284              &quot;severity&quot;: &quot;A String&quot;, # How severe this issue is to the stream.
285              &quot;type&quot;: &quot;A String&quot;, # The kind of error happening.
286            },
287          ],
288          &quot;lastUpdateTimeSeconds&quot;: &quot;A String&quot;, # The last time this status was updated (in seconds)
289          &quot;status&quot;: &quot;A String&quot;, # The status code of this stream
290        },
291        &quot;streamStatus&quot;: &quot;A String&quot;,
292      },
293    },
294  ],
295  &quot;kind&quot;: &quot;youtube#liveStreamListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveStreamListResponse&quot;.
296  &quot;nextPageToken&quot;: &quot;A String&quot;, # The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
297  &quot;pageInfo&quot;: { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page.
298    &quot;resultsPerPage&quot;: 42, # The number of results included in the API response.
299    &quot;totalResults&quot;: 42, # The total number of results in the result set.
300  },
301  &quot;prevPageToken&quot;: &quot;A String&quot;, # The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
302  &quot;tokenPagination&quot;: { # Stub token pagination template to suppress results.
303  },
304  &quot;visitorId&quot;: &quot;A String&quot;, # 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 &#x27;execute()&#x27; 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  &quot;cdn&quot;: { # Brief description of the live stream cdn settings. # The cdn object defines the live stream&#x27;s content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube.
333    &quot;format&quot;: &quot;A String&quot;, # The format of the video stream that you are sending to Youtube.
334    &quot;frameRate&quot;: &quot;A String&quot;, # The frame rate of the inbound video data.
335    &quot;ingestionInfo&quot;: { # 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      &quot;backupIngestionAddress&quot;: &quot;A String&quot;, # 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      &quot;ingestionAddress&quot;: &quot;A String&quot;, # 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      &quot;rtmpsBackupIngestionAddress&quot;: &quot;A String&quot;, # This ingestion url may be used instead of backupIngestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams.
339      &quot;rtmpsIngestionAddress&quot;: &quot;A String&quot;, # This ingestion url may be used instead of ingestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams.
340      &quot;streamName&quot;: &quot;A String&quot;, # The HTTP or RTMP stream name that YouTube assigns to the video stream.
341    },
342    &quot;ingestionType&quot;: &quot;A String&quot;, #  The method or protocol used to transmit the video stream.
343    &quot;resolution&quot;: &quot;A String&quot;, # The resolution of the inbound video data.
344  },
345  &quot;contentDetails&quot;: { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
346    &quot;closedCaptionsIngestionUrl&quot;: &quot;A String&quot;, # The ingestion URL where the closed captions of this stream are sent.
347    &quot;isReusable&quot;: 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  &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
350  &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the stream.
351  &quot;kind&quot;: &quot;youtube#liveStream&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveStream&quot;.
352  &quot;snippet&quot;: { # The snippet object contains basic details about the stream, including its channel, title, and description.
353    &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
354    &quot;description&quot;: &quot;A String&quot;, # The stream&#x27;s description. The value cannot be longer than 10000 characters.
355    &quot;isDefaultStream&quot;: True or False,
356    &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the stream was created.
357    &quot;title&quot;: &quot;A String&quot;, # The stream&#x27;s title. The value must be between 1 and 128 characters long.
358  },
359  &quot;status&quot;: { # Brief description of the live stream status. # The status object contains information about live stream&#x27;s status.
360    &quot;healthStatus&quot;: { # The health status of the stream.
361      &quot;configurationIssues&quot;: [ # The configurations issues on this stream
362        {
363          &quot;description&quot;: &quot;A String&quot;, # The long-form description of the issue and how to resolve it.
364          &quot;reason&quot;: &quot;A String&quot;, # The short-form reason for this issue.
365          &quot;severity&quot;: &quot;A String&quot;, # How severe this issue is to the stream.
366          &quot;type&quot;: &quot;A String&quot;, # The kind of error happening.
367        },
368      ],
369      &quot;lastUpdateTimeSeconds&quot;: &quot;A String&quot;, # The last time this status was updated (in seconds)
370      &quot;status&quot;: &quot;A String&quot;, # The status code of this stream
371    },
372    &quot;streamStatus&quot;: &quot;A String&quot;,
373  },
374}
375
376  onBehalfOfContentOwner: string, *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request&#x27;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  &quot;cdn&quot;: { # Brief description of the live stream cdn settings. # The cdn object defines the live stream&#x27;s content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube.
388    &quot;format&quot;: &quot;A String&quot;, # The format of the video stream that you are sending to Youtube.
389    &quot;frameRate&quot;: &quot;A String&quot;, # The frame rate of the inbound video data.
390    &quot;ingestionInfo&quot;: { # 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      &quot;backupIngestionAddress&quot;: &quot;A String&quot;, # 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      &quot;ingestionAddress&quot;: &quot;A String&quot;, # 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      &quot;rtmpsBackupIngestionAddress&quot;: &quot;A String&quot;, # This ingestion url may be used instead of backupIngestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams.
394      &quot;rtmpsIngestionAddress&quot;: &quot;A String&quot;, # This ingestion url may be used instead of ingestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams.
395      &quot;streamName&quot;: &quot;A String&quot;, # The HTTP or RTMP stream name that YouTube assigns to the video stream.
396    },
397    &quot;ingestionType&quot;: &quot;A String&quot;, #  The method or protocol used to transmit the video stream.
398    &quot;resolution&quot;: &quot;A String&quot;, # The resolution of the inbound video data.
399  },
400  &quot;contentDetails&quot;: { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
401    &quot;closedCaptionsIngestionUrl&quot;: &quot;A String&quot;, # The ingestion URL where the closed captions of this stream are sent.
402    &quot;isReusable&quot;: 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  &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
405  &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the stream.
406  &quot;kind&quot;: &quot;youtube#liveStream&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveStream&quot;.
407  &quot;snippet&quot;: { # The snippet object contains basic details about the stream, including its channel, title, and description.
408    &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
409    &quot;description&quot;: &quot;A String&quot;, # The stream&#x27;s description. The value cannot be longer than 10000 characters.
410    &quot;isDefaultStream&quot;: True or False,
411    &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the stream was created.
412    &quot;title&quot;: &quot;A String&quot;, # The stream&#x27;s title. The value must be between 1 and 128 characters long.
413  },
414  &quot;status&quot;: { # Brief description of the live stream status. # The status object contains information about live stream&#x27;s status.
415    &quot;healthStatus&quot;: { # The health status of the stream.
416      &quot;configurationIssues&quot;: [ # The configurations issues on this stream
417        {
418          &quot;description&quot;: &quot;A String&quot;, # The long-form description of the issue and how to resolve it.
419          &quot;reason&quot;: &quot;A String&quot;, # The short-form reason for this issue.
420          &quot;severity&quot;: &quot;A String&quot;, # How severe this issue is to the stream.
421          &quot;type&quot;: &quot;A String&quot;, # The kind of error happening.
422        },
423      ],
424      &quot;lastUpdateTimeSeconds&quot;: &quot;A String&quot;, # The last time this status was updated (in seconds)
425      &quot;status&quot;: &quot;A String&quot;, # The status code of this stream
426    },
427    &quot;streamStatus&quot;: &quot;A String&quot;,
428  },
429}</pre>
430</div>
431
432</body></html>