blob: c3275bcfcf2d045b8c1ba7343d957455cdf22549 [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
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">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#insert">insert(part, body=None, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040082<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">
Bu Sun Kim65020912020-05-20 12:08:20 -070084 <code><a href="#list">list(part, id=None, maxResults=None, mine=None, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, pageToken=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040085<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">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#update">update(part, body=None, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040091<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
Bu Sun Kim65020912020-05-20 12:08:20 -0700101The 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.
John Asmuth614db982014-04-24 15:46:26 -0400102 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">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code class="details" id="insert">insert(part, body=None, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400112 <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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700118 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400119 The object takes the form of:
120
121{ # A live stream describes a live ingestion point.
Bu Sun Kim65020912020-05-20 12:08:20 -0700122 &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.
123 &quot;format&quot;: &quot;A String&quot;, # The format of the video stream that you are sending to Youtube.
124 &quot;frameRate&quot;: &quot;A String&quot;, # The frame rate of the inbound video data.
125 &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.
126 &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.
127 &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.
128 #
129 # 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:
130 #
131 # STREAM_URL/STREAM_NAME
132 &quot;streamName&quot;: &quot;A String&quot;, # The HTTP or RTMP stream name that YouTube assigns to the video stream.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000133 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700134 &quot;ingestionType&quot;: &quot;A String&quot;, # The method or protocol used to transmit the video stream.
135 &quot;resolution&quot;: &quot;A String&quot;, # The resolution of the inbound video data.
John Asmuth614db982014-04-24 15:46:26 -0400136 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700137 &quot;contentDetails&quot;: { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
138 &quot;closedCaptionsIngestionUrl&quot;: &quot;A String&quot;, # The ingestion URL where the closed captions of this stream are sent.
139 &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.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700140 #
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.
John Asmuth614db982014-04-24 15:46:26 -0400145 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700146 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
147 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the stream.
148 &quot;kind&quot;: &quot;youtube#liveStream&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveStream&quot;.
149 &quot;snippet&quot;: { # The snippet object contains basic details about the stream, including its channel, title, and description.
150 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
151 &quot;description&quot;: &quot;A String&quot;, # The stream&#x27;s description. The value cannot be longer than 10000 characters.
152 &quot;isDefaultStream&quot;: True or False,
153 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
154 &quot;title&quot;: &quot;A String&quot;, # The stream&#x27;s title. The value must be between 1 and 128 characters long.
155 },
156 &quot;status&quot;: { # Brief description of the live stream status. # The status object contains information about live stream&#x27;s status.
157 &quot;healthStatus&quot;: { # The health status of the stream.
158 &quot;configurationIssues&quot;: [ # The configurations issues on this stream
159 {
160 &quot;description&quot;: &quot;A String&quot;, # The long-form description of the issue and how to resolve it.
161 &quot;reason&quot;: &quot;A String&quot;, # The short-form reason for this issue.
162 &quot;severity&quot;: &quot;A String&quot;, # How severe this issue is to the stream.
163 &quot;type&quot;: &quot;A String&quot;, # The kind of error happening.
164 },
165 ],
166 &quot;lastUpdateTimeSeconds&quot;: &quot;A String&quot;, # The last time this status was updated (in seconds)
167 &quot;status&quot;: &quot;A String&quot;, # The status code of this stream
John Asmuth614db982014-04-24 15:46:26 -0400168 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700169 &quot;streamStatus&quot;: &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400170 },
John Asmuth614db982014-04-24 15:46:26 -0400171 }
172
173 onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
174
Bu Sun Kim65020912020-05-20 12:08:20 -0700175The 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.
John Asmuth614db982014-04-24 15:46:26 -0400176 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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700186 &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.
187 &quot;format&quot;: &quot;A String&quot;, # The format of the video stream that you are sending to Youtube.
188 &quot;frameRate&quot;: &quot;A String&quot;, # The frame rate of the inbound video data.
189 &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.
190 &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.
191 &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.
192 #
193 # 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:
194 #
195 # STREAM_URL/STREAM_NAME
196 &quot;streamName&quot;: &quot;A String&quot;, # The HTTP or RTMP stream name that YouTube assigns to the video stream.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000197 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 &quot;ingestionType&quot;: &quot;A String&quot;, # The method or protocol used to transmit the video stream.
199 &quot;resolution&quot;: &quot;A String&quot;, # The resolution of the inbound video data.
John Asmuth614db982014-04-24 15:46:26 -0400200 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700201 &quot;contentDetails&quot;: { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
202 &quot;closedCaptionsIngestionUrl&quot;: &quot;A String&quot;, # The ingestion URL where the closed captions of this stream are sent.
203 &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.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700204 #
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.
John Asmuth614db982014-04-24 15:46:26 -0400209 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700210 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
211 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the stream.
212 &quot;kind&quot;: &quot;youtube#liveStream&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveStream&quot;.
213 &quot;snippet&quot;: { # The snippet object contains basic details about the stream, including its channel, title, and description.
214 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
215 &quot;description&quot;: &quot;A String&quot;, # The stream&#x27;s description. The value cannot be longer than 10000 characters.
216 &quot;isDefaultStream&quot;: True or False,
217 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
218 &quot;title&quot;: &quot;A String&quot;, # The stream&#x27;s title. The value must be between 1 and 128 characters long.
219 },
220 &quot;status&quot;: { # Brief description of the live stream status. # The status object contains information about live stream&#x27;s status.
221 &quot;healthStatus&quot;: { # The health status of the stream.
222 &quot;configurationIssues&quot;: [ # The configurations issues on this stream
223 {
224 &quot;description&quot;: &quot;A String&quot;, # The long-form description of the issue and how to resolve it.
225 &quot;reason&quot;: &quot;A String&quot;, # The short-form reason for this issue.
226 &quot;severity&quot;: &quot;A String&quot;, # How severe this issue is to the stream.
227 &quot;type&quot;: &quot;A String&quot;, # The kind of error happening.
228 },
229 ],
230 &quot;lastUpdateTimeSeconds&quot;: &quot;A String&quot;, # The last time this status was updated (in seconds)
231 &quot;status&quot;: &quot;A String&quot;, # The status code of this stream
John Asmuth614db982014-04-24 15:46:26 -0400232 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700233 &quot;streamStatus&quot;: &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400234 },
John Asmuth614db982014-04-24 15:46:26 -0400235 }</pre>
236</div>
237
238<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700239 <code class="details" id="list">list(part, id=None, maxResults=None, mine=None, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, pageToken=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400240 <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)
Bu Sun Kim65020912020-05-20 12:08:20 -0700244 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&#x27;s ID.
245 maxResults: integer, The maxResults parameter specifies the maximum number of items that should be returned in the result set.
246 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.
John Asmuth614db982014-04-24 15:46:26 -0400247 onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
248
Bu Sun Kim65020912020-05-20 12:08:20 -0700249The 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.
John Asmuth614db982014-04-24 15:46:26 -0400250 onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
251
252The 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.
253
254This 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 Kim65020912020-05-20 12:08:20 -0700255 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.
John Asmuth614db982014-04-24 15:46:26 -0400256
257Returns:
258 An object of the form:
259
260 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700261 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
262 &quot;eventId&quot;: &quot;A String&quot;, # Serialized EventId of the request which produced this response.
263 &quot;items&quot;: [ # A list of live streams that match the request criteria.
John Asmuth614db982014-04-24 15:46:26 -0400264 { # A live stream describes a live ingestion point.
Bu Sun Kim65020912020-05-20 12:08:20 -0700265 &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.
266 &quot;format&quot;: &quot;A String&quot;, # The format of the video stream that you are sending to Youtube.
267 &quot;frameRate&quot;: &quot;A String&quot;, # The frame rate of the inbound video data.
268 &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.
269 &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.
270 &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.
271 #
272 # 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:
273 #
274 # STREAM_URL/STREAM_NAME
275 &quot;streamName&quot;: &quot;A String&quot;, # The HTTP or RTMP stream name that YouTube assigns to the video stream.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000276 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700277 &quot;ingestionType&quot;: &quot;A String&quot;, # The method or protocol used to transmit the video stream.
278 &quot;resolution&quot;: &quot;A String&quot;, # The resolution of the inbound video data.
John Asmuth614db982014-04-24 15:46:26 -0400279 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700280 &quot;contentDetails&quot;: { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
281 &quot;closedCaptionsIngestionUrl&quot;: &quot;A String&quot;, # The ingestion URL where the closed captions of this stream are sent.
282 &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.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700283 #
284 # 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:
285 # - A non-reusable stream can only be bound to one broadcast.
286 # - A non-reusable stream might be deleted by an automated process after the broadcast ends.
287 # - 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.
John Asmuth614db982014-04-24 15:46:26 -0400288 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700289 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
290 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the stream.
291 &quot;kind&quot;: &quot;youtube#liveStream&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveStream&quot;.
292 &quot;snippet&quot;: { # The snippet object contains basic details about the stream, including its channel, title, and description.
293 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
294 &quot;description&quot;: &quot;A String&quot;, # The stream&#x27;s description. The value cannot be longer than 10000 characters.
295 &quot;isDefaultStream&quot;: True or False,
296 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
297 &quot;title&quot;: &quot;A String&quot;, # The stream&#x27;s title. The value must be between 1 and 128 characters long.
298 },
299 &quot;status&quot;: { # Brief description of the live stream status. # The status object contains information about live stream&#x27;s status.
300 &quot;healthStatus&quot;: { # The health status of the stream.
301 &quot;configurationIssues&quot;: [ # The configurations issues on this stream
302 {
303 &quot;description&quot;: &quot;A String&quot;, # The long-form description of the issue and how to resolve it.
304 &quot;reason&quot;: &quot;A String&quot;, # The short-form reason for this issue.
305 &quot;severity&quot;: &quot;A String&quot;, # How severe this issue is to the stream.
306 &quot;type&quot;: &quot;A String&quot;, # The kind of error happening.
307 },
308 ],
309 &quot;lastUpdateTimeSeconds&quot;: &quot;A String&quot;, # The last time this status was updated (in seconds)
310 &quot;status&quot;: &quot;A String&quot;, # The status code of this stream
John Asmuth614db982014-04-24 15:46:26 -0400311 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700312 &quot;streamStatus&quot;: &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400313 },
John Asmuth614db982014-04-24 15:46:26 -0400314 },
315 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700316 &quot;kind&quot;: &quot;youtube#liveStreamListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveStreamListResponse&quot;.
317 &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.
318 &quot;pageInfo&quot;: { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page.
319 &quot;resultsPerPage&quot;: 42, # The number of results included in the API response.
320 &quot;totalResults&quot;: 42, # The total number of results in the result set.
John Asmuth614db982014-04-24 15:46:26 -0400321 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700322 &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.
323 &quot;tokenPagination&quot;: { # Stub token pagination template to suppress results.
John Asmuth614db982014-04-24 15:46:26 -0400324 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700325 &quot;visitorId&quot;: &quot;A String&quot;, # The visitorId identifies the visitor.
John Asmuth614db982014-04-24 15:46:26 -0400326 }</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:
Bu Sun Kim65020912020-05-20 12:08:20 -0700338 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400339 page. Returns None if there are no more items in the collection.
340 </pre>
341</div>
342
343<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700344 <code class="details" id="update">update(part, body=None, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400345 <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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700353 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400354 The object takes the form of:
355
356{ # A live stream describes a live ingestion point.
Bu Sun Kim65020912020-05-20 12:08:20 -0700357 &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.
358 &quot;format&quot;: &quot;A String&quot;, # The format of the video stream that you are sending to Youtube.
359 &quot;frameRate&quot;: &quot;A String&quot;, # The frame rate of the inbound video data.
360 &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.
361 &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.
362 &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.
363 #
364 # 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:
365 #
366 # STREAM_URL/STREAM_NAME
367 &quot;streamName&quot;: &quot;A String&quot;, # The HTTP or RTMP stream name that YouTube assigns to the video stream.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000368 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700369 &quot;ingestionType&quot;: &quot;A String&quot;, # The method or protocol used to transmit the video stream.
370 &quot;resolution&quot;: &quot;A String&quot;, # The resolution of the inbound video data.
John Asmuth614db982014-04-24 15:46:26 -0400371 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700372 &quot;contentDetails&quot;: { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
373 &quot;closedCaptionsIngestionUrl&quot;: &quot;A String&quot;, # The ingestion URL where the closed captions of this stream are sent.
374 &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.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700375 #
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.
John Asmuth614db982014-04-24 15:46:26 -0400380 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700381 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
382 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the stream.
383 &quot;kind&quot;: &quot;youtube#liveStream&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveStream&quot;.
384 &quot;snippet&quot;: { # The snippet object contains basic details about the stream, including its channel, title, and description.
385 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
386 &quot;description&quot;: &quot;A String&quot;, # The stream&#x27;s description. The value cannot be longer than 10000 characters.
387 &quot;isDefaultStream&quot;: True or False,
388 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
389 &quot;title&quot;: &quot;A String&quot;, # The stream&#x27;s title. The value must be between 1 and 128 characters long.
390 },
391 &quot;status&quot;: { # Brief description of the live stream status. # The status object contains information about live stream&#x27;s status.
392 &quot;healthStatus&quot;: { # The health status of the stream.
393 &quot;configurationIssues&quot;: [ # The configurations issues on this stream
394 {
395 &quot;description&quot;: &quot;A String&quot;, # The long-form description of the issue and how to resolve it.
396 &quot;reason&quot;: &quot;A String&quot;, # The short-form reason for this issue.
397 &quot;severity&quot;: &quot;A String&quot;, # How severe this issue is to the stream.
398 &quot;type&quot;: &quot;A String&quot;, # The kind of error happening.
399 },
400 ],
401 &quot;lastUpdateTimeSeconds&quot;: &quot;A String&quot;, # The last time this status was updated (in seconds)
402 &quot;status&quot;: &quot;A String&quot;, # The status code of this stream
John Asmuth614db982014-04-24 15:46:26 -0400403 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700404 &quot;streamStatus&quot;: &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400405 },
John Asmuth614db982014-04-24 15:46:26 -0400406 }
407
408 onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
409
Bu Sun Kim65020912020-05-20 12:08:20 -0700410The 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.
John Asmuth614db982014-04-24 15:46:26 -0400411 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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700421 &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.
422 &quot;format&quot;: &quot;A String&quot;, # The format of the video stream that you are sending to Youtube.
423 &quot;frameRate&quot;: &quot;A String&quot;, # The frame rate of the inbound video data.
424 &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.
425 &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.
426 &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.
427 #
428 # 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:
429 #
430 # STREAM_URL/STREAM_NAME
431 &quot;streamName&quot;: &quot;A String&quot;, # The HTTP or RTMP stream name that YouTube assigns to the video stream.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000432 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700433 &quot;ingestionType&quot;: &quot;A String&quot;, # The method or protocol used to transmit the video stream.
434 &quot;resolution&quot;: &quot;A String&quot;, # The resolution of the inbound video data.
John Asmuth614db982014-04-24 15:46:26 -0400435 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700436 &quot;contentDetails&quot;: { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
437 &quot;closedCaptionsIngestionUrl&quot;: &quot;A String&quot;, # The ingestion URL where the closed captions of this stream are sent.
438 &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.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700439 #
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.
John Asmuth614db982014-04-24 15:46:26 -0400444 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700445 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
446 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the stream.
447 &quot;kind&quot;: &quot;youtube#liveStream&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveStream&quot;.
448 &quot;snippet&quot;: { # The snippet object contains basic details about the stream, including its channel, title, and description.
449 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
450 &quot;description&quot;: &quot;A String&quot;, # The stream&#x27;s description. The value cannot be longer than 10000 characters.
451 &quot;isDefaultStream&quot;: True or False,
452 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
453 &quot;title&quot;: &quot;A String&quot;, # The stream&#x27;s title. The value must be between 1 and 128 characters long.
454 },
455 &quot;status&quot;: { # Brief description of the live stream status. # The status object contains information about live stream&#x27;s status.
456 &quot;healthStatus&quot;: { # The health status of the stream.
457 &quot;configurationIssues&quot;: [ # The configurations issues on this stream
458 {
459 &quot;description&quot;: &quot;A String&quot;, # The long-form description of the issue and how to resolve it.
460 &quot;reason&quot;: &quot;A String&quot;, # The short-form reason for this issue.
461 &quot;severity&quot;: &quot;A String&quot;, # How severe this issue is to the stream.
462 &quot;type&quot;: &quot;A String&quot;, # The kind of error happening.
463 },
464 ],
465 &quot;lastUpdateTimeSeconds&quot;: &quot;A String&quot;, # The last time this status was updated (in seconds)
466 &quot;status&quot;: &quot;A String&quot;, # The status code of this stream
John Asmuth614db982014-04-24 15:46:26 -0400467 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700468 &quot;streamStatus&quot;: &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400469 },
John Asmuth614db982014-04-24 15:46:26 -0400470 }</pre>
471</div>
472
473</body></html>