blob: 7bc8df901504127b47262852ed155b4950d32d25 [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<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
Bu Sun Kimd059ad82020-07-22 17:02:09 -070075<h1><a href="youtube_v3.html">YouTube Data API v3</a> . <a href="youtube_v3.liveStreams.html">liveStreams</a></h1>
John Asmuth614db982014-04-24 15:46:26 -040076<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070081 <code><a href="#delete">delete(id, onBehalfOfContentOwnerChannel=None, onBehalfOfContentOwner=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070082<p class="firstline">Deletes an existing stream for the authenticated user.</p>
John Asmuth614db982014-04-24 15:46:26 -040083<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070084 <code><a href="#insert">insert(part, body=None, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070085<p class="firstline">Inserts a new stream for the authenticated user.</p>
John Asmuth614db982014-04-24 15:46:26 -040086<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070087 <code><a href="#list">list(part, onBehalfOfContentOwnerChannel=None, mine=None, id=None, onBehalfOfContentOwner=None, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070088<p class="firstline">Retrieve the list of streams associated with the given channel. --</p>
John Asmuth614db982014-04-24 15:46:26 -040089<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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070093 <code><a href="#update">update(part, body=None, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070094<p class="firstline">Updates an existing stream for the authenticated user.</p>
John Asmuth614db982014-04-24 15:46:26 -040095<h3>Method Details</h3>
96<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097 <code class="details" id="close">close()</code>
98 <pre>Close httplib2 connections.</pre>
99</div>
100
101<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700102 <code class="details" id="delete">delete(id, onBehalfOfContentOwnerChannel=None, onBehalfOfContentOwner=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700103 <pre>Deletes an existing stream for the authenticated user.
John Asmuth614db982014-04-24 15:46:26 -0400104
105Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700106 id: string, A parameter (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700107 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700108 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700109 x__xgafv: string, V1 error format.
110 Allowed values
111 1 - v1 error format
112 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400113</pre>
114</div>
115
116<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700117 <code class="details" id="insert">insert(part, body=None, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700118 <pre>Inserts a new stream for the authenticated user.
John Asmuth614db982014-04-24 15:46:26 -0400119
120Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700121 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. (required) (repeated)
Dan O'Mearadd494642020-05-01 07:42:23 -0700122 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400123 The object takes the form of:
124
125{ # A live stream describes a live ingestion point.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700126 &quot;snippet&quot;: { # The snippet object contains basic details about the stream, including its channel, title, and description.
127 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
128 &quot;description&quot;: &quot;A String&quot;, # The stream&#x27;s description. The value cannot be longer than 10000 characters.
129 &quot;isDefaultStream&quot;: True or False,
130 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the stream was created. The value is specified in ISO 8601 format.
131 &quot;title&quot;: &quot;A String&quot;, # The stream&#x27;s title. The value must be between 1 and 128 characters long.
John Asmuth614db982014-04-24 15:46:26 -0400132 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700133 &quot;status&quot;: { # Brief description of the live stream status. # The status object contains information about live stream&#x27;s status.
134 &quot;healthStatus&quot;: { # The health status of the stream.
135 &quot;status&quot;: &quot;A String&quot;, # The status code of this stream
136 &quot;configurationIssues&quot;: [ # The configurations issues on this stream
137 {
138 &quot;reason&quot;: &quot;A String&quot;, # The short-form reason for this issue.
139 &quot;type&quot;: &quot;A String&quot;, # The kind of error happening.
140 &quot;severity&quot;: &quot;A String&quot;, # How severe this issue is to the stream.
141 &quot;description&quot;: &quot;A String&quot;, # The long-form description of the issue and how to resolve it.
142 },
143 ],
144 &quot;lastUpdateTimeSeconds&quot;: &quot;A String&quot;, # The last time this status was updated (in seconds)
145 },
146 &quot;streamStatus&quot;: &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400147 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700148 &quot;contentDetails&quot;: { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
149 &quot;closedCaptionsIngestionUrl&quot;: &quot;A String&quot;, # The ingestion URL where the closed captions of this stream are sent.
150 &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.
151 },
152 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
153 &quot;kind&quot;: &quot;youtube#liveStream&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveStream&quot;.
154 &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.
155 &quot;frameRate&quot;: &quot;A String&quot;, # The frame rate of the inbound video data.
156 &quot;format&quot;: &quot;A String&quot;, # The format of the video stream that you are sending to Youtube.
157 &quot;ingestionType&quot;: &quot;A String&quot;, # The method or protocol used to transmit the video stream.
158 &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.
159 &quot;streamName&quot;: &quot;A String&quot;, # The HTTP or RTMP stream name that YouTube assigns to the video stream.
160 &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.
161 &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.
162 &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*
163 &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.
164 },
165 &quot;resolution&quot;: &quot;A String&quot;, # The resolution of the inbound video data.
166 },
167 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the stream.
168 }
John Asmuth614db982014-04-24 15:46:26 -0400169
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700170 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700171 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700172 x__xgafv: string, V1 error format.
173 Allowed values
174 1 - v1 error format
175 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400176
177Returns:
178 An object of the form:
179
180 { # A live stream describes a live ingestion point.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700181 &quot;snippet&quot;: { # The snippet object contains basic details about the stream, including its channel, title, and description.
182 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
183 &quot;description&quot;: &quot;A String&quot;, # The stream&#x27;s description. The value cannot be longer than 10000 characters.
184 &quot;isDefaultStream&quot;: True or False,
185 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the stream was created. The value is specified in ISO 8601 format.
186 &quot;title&quot;: &quot;A String&quot;, # The stream&#x27;s title. The value must be between 1 and 128 characters long.
John Asmuth614db982014-04-24 15:46:26 -0400187 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700188 &quot;status&quot;: { # Brief description of the live stream status. # The status object contains information about live stream&#x27;s status.
189 &quot;healthStatus&quot;: { # The health status of the stream.
190 &quot;status&quot;: &quot;A String&quot;, # The status code of this stream
191 &quot;configurationIssues&quot;: [ # The configurations issues on this stream
192 {
193 &quot;reason&quot;: &quot;A String&quot;, # The short-form reason for this issue.
194 &quot;type&quot;: &quot;A String&quot;, # The kind of error happening.
195 &quot;severity&quot;: &quot;A String&quot;, # How severe this issue is to the stream.
196 &quot;description&quot;: &quot;A String&quot;, # The long-form description of the issue and how to resolve it.
197 },
198 ],
199 &quot;lastUpdateTimeSeconds&quot;: &quot;A String&quot;, # The last time this status was updated (in seconds)
200 },
201 &quot;streamStatus&quot;: &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400202 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700203 &quot;contentDetails&quot;: { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
204 &quot;closedCaptionsIngestionUrl&quot;: &quot;A String&quot;, # The ingestion URL where the closed captions of this stream are sent.
205 &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.
206 },
207 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
208 &quot;kind&quot;: &quot;youtube#liveStream&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveStream&quot;.
209 &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.
210 &quot;frameRate&quot;: &quot;A String&quot;, # The frame rate of the inbound video data.
211 &quot;format&quot;: &quot;A String&quot;, # The format of the video stream that you are sending to Youtube.
212 &quot;ingestionType&quot;: &quot;A String&quot;, # The method or protocol used to transmit the video stream.
213 &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.
214 &quot;streamName&quot;: &quot;A String&quot;, # The HTTP or RTMP stream name that YouTube assigns to the video stream.
215 &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.
216 &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.
217 &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*
218 &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.
219 },
220 &quot;resolution&quot;: &quot;A String&quot;, # The resolution of the inbound video data.
221 },
222 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the stream.
223 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400224</div>
225
226<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700227 <code class="details" id="list">list(part, onBehalfOfContentOwnerChannel=None, mine=None, id=None, onBehalfOfContentOwner=None, maxResults=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700228 <pre>Retrieve the list of streams associated with the given channel. --
John Asmuth614db982014-04-24 15:46:26 -0400229
230Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700231 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)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700232 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700233 mine: boolean, A parameter
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700234 id: string, Return LiveStreams with the given ids from Stubby or Apiary. (repeated)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700235 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 maxResults: integer, The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700238 x__xgafv: string, V1 error format.
239 Allowed values
240 1 - v1 error format
241 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400242
243Returns:
244 An object of the form:
245
246 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700247 &quot;pageInfo&quot;: { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page.
248 &quot;totalResults&quot;: 42, # The total number of results in the result set.
249 &quot;resultsPerPage&quot;: 42, # The number of results included in the API response.
250 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700251 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700252 &quot;eventId&quot;: &quot;A String&quot;, # Serialized EventId of the request which produced this response.
253 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700254 &quot;tokenPagination&quot;: { # Stub token pagination template to suppress results.
255 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700256 &quot;visitorId&quot;: &quot;A String&quot;, # The visitorId identifies the visitor.
257 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700258 &quot;items&quot;: [ # A list of live streams that match the request criteria.
John Asmuth614db982014-04-24 15:46:26 -0400259 { # A live stream describes a live ingestion point.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700260 &quot;snippet&quot;: { # The snippet object contains basic details about the stream, including its channel, title, and description.
261 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
262 &quot;description&quot;: &quot;A String&quot;, # The stream&#x27;s description. The value cannot be longer than 10000 characters.
263 &quot;isDefaultStream&quot;: True or False,
264 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the stream was created. The value is specified in ISO 8601 format.
265 &quot;title&quot;: &quot;A String&quot;, # The stream&#x27;s title. The value must be between 1 and 128 characters long.
John Asmuth614db982014-04-24 15:46:26 -0400266 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700267 &quot;status&quot;: { # Brief description of the live stream status. # The status object contains information about live stream&#x27;s status.
268 &quot;healthStatus&quot;: { # The health status of the stream.
269 &quot;status&quot;: &quot;A String&quot;, # The status code of this stream
270 &quot;configurationIssues&quot;: [ # The configurations issues on this stream
271 {
272 &quot;reason&quot;: &quot;A String&quot;, # The short-form reason for this issue.
273 &quot;type&quot;: &quot;A String&quot;, # The kind of error happening.
274 &quot;severity&quot;: &quot;A String&quot;, # How severe this issue is to the stream.
275 &quot;description&quot;: &quot;A String&quot;, # The long-form description of the issue and how to resolve it.
276 },
277 ],
278 &quot;lastUpdateTimeSeconds&quot;: &quot;A String&quot;, # The last time this status was updated (in seconds)
279 },
280 &quot;streamStatus&quot;: &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700281 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700282 &quot;contentDetails&quot;: { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
283 &quot;closedCaptionsIngestionUrl&quot;: &quot;A String&quot;, # The ingestion URL where the closed captions of this stream are sent.
284 &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.
285 },
286 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
287 &quot;kind&quot;: &quot;youtube#liveStream&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveStream&quot;.
288 &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.
289 &quot;frameRate&quot;: &quot;A String&quot;, # The frame rate of the inbound video data.
290 &quot;format&quot;: &quot;A String&quot;, # The format of the video stream that you are sending to Youtube.
291 &quot;ingestionType&quot;: &quot;A String&quot;, # The method or protocol used to transmit the video stream.
292 &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.
293 &quot;streamName&quot;: &quot;A String&quot;, # The HTTP or RTMP stream name that YouTube assigns to the video stream.
294 &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.
295 &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.
296 &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*
297 &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.
298 },
299 &quot;resolution&quot;: &quot;A String&quot;, # The resolution of the inbound video data.
300 },
301 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the stream.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700302 },
John Asmuth614db982014-04-24 15:46:26 -0400303 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700304 &quot;kind&quot;: &quot;youtube#liveStreamListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveStreamListResponse&quot;.
John Asmuth614db982014-04-24 15:46:26 -0400305 }</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:
Bu Sun Kim65020912020-05-20 12:08:20 -0700317 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400318 page. Returns None if there are no more items in the collection.
319 </pre>
320</div>
321
322<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700323 <code class="details" id="update">update(part, body=None, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700324 <pre>Updates an existing stream for the authenticated user.
John Asmuth614db982014-04-24 15:46:26 -0400325
326Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700327 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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700328 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400329 The object takes the form of:
330
331{ # A live stream describes a live ingestion point.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700332 &quot;snippet&quot;: { # The snippet object contains basic details about the stream, including its channel, title, and description.
333 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
334 &quot;description&quot;: &quot;A String&quot;, # The stream&#x27;s description. The value cannot be longer than 10000 characters.
335 &quot;isDefaultStream&quot;: True or False,
336 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the stream was created. The value is specified in ISO 8601 format.
337 &quot;title&quot;: &quot;A String&quot;, # The stream&#x27;s title. The value must be between 1 and 128 characters long.
John Asmuth614db982014-04-24 15:46:26 -0400338 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700339 &quot;status&quot;: { # Brief description of the live stream status. # The status object contains information about live stream&#x27;s status.
340 &quot;healthStatus&quot;: { # The health status of the stream.
341 &quot;status&quot;: &quot;A String&quot;, # The status code of this stream
342 &quot;configurationIssues&quot;: [ # The configurations issues on this stream
343 {
344 &quot;reason&quot;: &quot;A String&quot;, # The short-form reason for this issue.
345 &quot;type&quot;: &quot;A String&quot;, # The kind of error happening.
346 &quot;severity&quot;: &quot;A String&quot;, # How severe this issue is to the stream.
347 &quot;description&quot;: &quot;A String&quot;, # The long-form description of the issue and how to resolve it.
348 },
349 ],
350 &quot;lastUpdateTimeSeconds&quot;: &quot;A String&quot;, # The last time this status was updated (in seconds)
351 },
352 &quot;streamStatus&quot;: &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400353 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700354 &quot;contentDetails&quot;: { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
355 &quot;closedCaptionsIngestionUrl&quot;: &quot;A String&quot;, # The ingestion URL where the closed captions of this stream are sent.
356 &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.
357 },
358 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
359 &quot;kind&quot;: &quot;youtube#liveStream&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveStream&quot;.
360 &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.
361 &quot;frameRate&quot;: &quot;A String&quot;, # The frame rate of the inbound video data.
362 &quot;format&quot;: &quot;A String&quot;, # The format of the video stream that you are sending to Youtube.
363 &quot;ingestionType&quot;: &quot;A String&quot;, # The method or protocol used to transmit the video stream.
364 &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.
365 &quot;streamName&quot;: &quot;A String&quot;, # The HTTP or RTMP stream name that YouTube assigns to the video stream.
366 &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.
367 &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.
368 &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*
369 &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.
370 },
371 &quot;resolution&quot;: &quot;A String&quot;, # The resolution of the inbound video data.
372 },
373 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the stream.
374 }
John Asmuth614db982014-04-24 15:46:26 -0400375
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700376 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700377 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700378 x__xgafv: string, V1 error format.
379 Allowed values
380 1 - v1 error format
381 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400382
383Returns:
384 An object of the form:
385
386 { # A live stream describes a live ingestion point.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700387 &quot;snippet&quot;: { # The snippet object contains basic details about the stream, including its channel, title, and description.
388 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
389 &quot;description&quot;: &quot;A String&quot;, # The stream&#x27;s description. The value cannot be longer than 10000 characters.
390 &quot;isDefaultStream&quot;: True or False,
391 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the stream was created. The value is specified in ISO 8601 format.
392 &quot;title&quot;: &quot;A String&quot;, # The stream&#x27;s title. The value must be between 1 and 128 characters long.
John Asmuth614db982014-04-24 15:46:26 -0400393 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700394 &quot;status&quot;: { # Brief description of the live stream status. # The status object contains information about live stream&#x27;s status.
395 &quot;healthStatus&quot;: { # The health status of the stream.
396 &quot;status&quot;: &quot;A String&quot;, # The status code of this stream
397 &quot;configurationIssues&quot;: [ # The configurations issues on this stream
398 {
399 &quot;reason&quot;: &quot;A String&quot;, # The short-form reason for this issue.
400 &quot;type&quot;: &quot;A String&quot;, # The kind of error happening.
401 &quot;severity&quot;: &quot;A String&quot;, # How severe this issue is to the stream.
402 &quot;description&quot;: &quot;A String&quot;, # The long-form description of the issue and how to resolve it.
403 },
404 ],
405 &quot;lastUpdateTimeSeconds&quot;: &quot;A String&quot;, # The last time this status was updated (in seconds)
406 },
407 &quot;streamStatus&quot;: &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400408 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700409 &quot;contentDetails&quot;: { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
410 &quot;closedCaptionsIngestionUrl&quot;: &quot;A String&quot;, # The ingestion URL where the closed captions of this stream are sent.
411 &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.
412 },
413 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
414 &quot;kind&quot;: &quot;youtube#liveStream&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveStream&quot;.
415 &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.
416 &quot;frameRate&quot;: &quot;A String&quot;, # The frame rate of the inbound video data.
417 &quot;format&quot;: &quot;A String&quot;, # The format of the video stream that you are sending to Youtube.
418 &quot;ingestionType&quot;: &quot;A String&quot;, # The method or protocol used to transmit the video stream.
419 &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.
420 &quot;streamName&quot;: &quot;A String&quot;, # The HTTP or RTMP stream name that YouTube assigns to the video stream.
421 &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.
422 &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.
423 &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*
424 &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.
425 },
426 &quot;resolution&quot;: &quot;A String&quot;, # The resolution of the inbound video data.
427 },
428 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the stream.
429 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400430</div>
431
432</body></html>