blob: 23b959798afeb642912a1857db6274c0792da55a [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">
81 <code><a href="#insert">insert(part=None, body, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</a></code></p>
82<p class="firstline">Creates a video stream. The stream enables you to send your video to YouTube, which can then broadcast the video to your audience.</p>
83<p class="toc_element">
84 <code><a href="#list">list(part, onBehalfOfContentOwner=None, pageToken=None, onBehalfOfContentOwnerChannel=None, maxResults=None, mine=None, id=None)</a></code></p>
85<p class="firstline">Returns a list of video streams that match the API request parameters.</p>
86<p class="toc_element">
87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<p class="toc_element">
90 <code><a href="#update">update(part=None, body, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</a></code></p>
91<p class="firstline">Updates a video stream. If the properties that you want to change cannot be updated, then you need to create a new stream with the proper settings.</p>
92<h3>Method Details</h3>
93<div class="method">
94 <code class="details" id="delete">delete(id, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</code>
95 <pre>Deletes a video stream.
96
97Args:
98 id: string, The id parameter specifies the YouTube live stream ID for the resource that is being deleted. (required)
99 onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
100
101The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
102 onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
103
104The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.
105
106This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
107</pre>
108</div>
109
110<div class="method">
111 <code class="details" id="insert">insert(part=None, body, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</code>
112 <pre>Creates a video stream. The stream enables you to send your video to YouTube, which can then broadcast the video to your audience.
113
114Args:
115 part: string, The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
116
117The part properties that you can include in the parameter value are id, snippet, cdn, and status. (required)
118 body: object, The request body. (required)
119 The object takes the form of:
120
121{ # A live stream describes a live ingestion point.
122 "status": { # Brief description of the live stream status. # The status object contains information about live stream's status.
123 "streamStatus": "A String",
124 },
125 "kind": "youtube#liveStream", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveStream".
126 "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700127 "isReusable": True or False, # Indicates whether the stream is reusable, which means that it can be bound to multiple broadcasts. It is common for broadcasters to reuse the same stream for many different broadcasts if those broadcasts occur at different times.
128 #
129 # 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:
130 # - A non-reusable stream can only be bound to one broadcast.
131 # - A non-reusable stream might be deleted by an automated process after the broadcast ends.
132 # - 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 -0400133 "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent.
134 },
135 "cdn": { # Brief description of the live stream cdn settings. # The cdn object defines the live stream's content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube.
136 "ingestionType": "A String", # The method or protocol used to transmit the video stream.
137 "ingestionInfo": { # Describes information necessary for ingesting an RTMP or an HTTP stream. # The ingestionInfo object contains information that YouTube provides that you need to transmit your RTMP or HTTP stream to YouTube.
138 "backupIngestionAddress": "A String", # The backup ingestion URL that you should use to stream video to YouTube. You have the option of simultaneously streaming the content that you are sending to the ingestionAddress to this URL.
139 "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream.
140 "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. You must stream video to this URL.
141 #
142 # 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:
143 #
144 # STREAM_URL/STREAM_NAME
145 },
146 "format": "A String", # The format of the video stream that you are sending to Youtube.
147 },
148 "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description.
149 "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
150 "description": "A String", # The stream's description. The value cannot be longer than 10000 characters.
151 "publishedAt": "A String", # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
152 "title": "A String", # The stream's title. The value must be between 1 and 128 characters long.
153 },
154 "etag": "A String", # Etag of this resource.
155 "id": "A String", # The ID that YouTube assigns to uniquely identify the stream.
156 }
157
158 onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
159
160The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
161 onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
162
163The 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.
164
165This 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.
166
167Returns:
168 An object of the form:
169
170 { # A live stream describes a live ingestion point.
171 "status": { # Brief description of the live stream status. # The status object contains information about live stream's status.
172 "streamStatus": "A String",
173 },
174 "kind": "youtube#liveStream", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveStream".
175 "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700176 "isReusable": True or False, # Indicates whether the stream is reusable, which means that it can be bound to multiple broadcasts. It is common for broadcasters to reuse the same stream for many different broadcasts if those broadcasts occur at different times.
177 #
178 # 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:
179 # - A non-reusable stream can only be bound to one broadcast.
180 # - A non-reusable stream might be deleted by an automated process after the broadcast ends.
181 # - 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 -0400182 "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent.
183 },
184 "cdn": { # Brief description of the live stream cdn settings. # The cdn object defines the live stream's content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube.
185 "ingestionType": "A String", # The method or protocol used to transmit the video stream.
186 "ingestionInfo": { # Describes information necessary for ingesting an RTMP or an HTTP stream. # The ingestionInfo object contains information that YouTube provides that you need to transmit your RTMP or HTTP stream to YouTube.
187 "backupIngestionAddress": "A String", # The backup ingestion URL that you should use to stream video to YouTube. You have the option of simultaneously streaming the content that you are sending to the ingestionAddress to this URL.
188 "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream.
189 "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. You must stream video to this URL.
190 #
191 # 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:
192 #
193 # STREAM_URL/STREAM_NAME
194 },
195 "format": "A String", # The format of the video stream that you are sending to Youtube.
196 },
197 "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description.
198 "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
199 "description": "A String", # The stream's description. The value cannot be longer than 10000 characters.
200 "publishedAt": "A String", # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
201 "title": "A String", # The stream's title. The value must be between 1 and 128 characters long.
202 },
203 "etag": "A String", # Etag of this resource.
204 "id": "A String", # The ID that YouTube assigns to uniquely identify the stream.
205 }</pre>
206</div>
207
208<div class="method">
209 <code class="details" id="list">list(part, onBehalfOfContentOwner=None, pageToken=None, onBehalfOfContentOwnerChannel=None, maxResults=None, mine=None, id=None)</code>
210 <pre>Returns a list of video streams that match the API request parameters.
211
212Args:
213 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)
214 onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
215
216The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
217 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.
218 onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
219
220The 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.
221
222This 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.
223 maxResults: integer, The maxResults parameter specifies the maximum number of items that should be returned in the result set. Acceptable values are 0 to 50, inclusive. The default value is 5.
224 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.
225 id: string, The id parameter specifies a comma-separated list of YouTube stream IDs that identify the streams being retrieved. In a liveStream resource, the id property specifies the stream's ID.
226
227Returns:
228 An object of the form:
229
230 {
231 "eventId": "A String", # Serialized EventId of the request which produced this response.
232 "nextPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
233 "kind": "youtube#liveStreamListResponse", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveStreamListResponse".
234 "visitorId": "A String", # The visitorId identifies the visitor.
235 "items": [ # A list of live streams that match the request criteria.
236 { # A live stream describes a live ingestion point.
237 "status": { # Brief description of the live stream status. # The status object contains information about live stream's status.
238 "streamStatus": "A String",
239 },
240 "kind": "youtube#liveStream", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveStream".
241 "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700242 "isReusable": True or False, # Indicates whether the stream is reusable, which means that it can be bound to multiple broadcasts. It is common for broadcasters to reuse the same stream for many different broadcasts if those broadcasts occur at different times.
243 #
244 # 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:
245 # - A non-reusable stream can only be bound to one broadcast.
246 # - A non-reusable stream might be deleted by an automated process after the broadcast ends.
247 # - 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 -0400248 "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent.
249 },
250 "cdn": { # Brief description of the live stream cdn settings. # The cdn object defines the live stream's content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube.
251 "ingestionType": "A String", # The method or protocol used to transmit the video stream.
252 "ingestionInfo": { # Describes information necessary for ingesting an RTMP or an HTTP stream. # The ingestionInfo object contains information that YouTube provides that you need to transmit your RTMP or HTTP stream to YouTube.
253 "backupIngestionAddress": "A String", # The backup ingestion URL that you should use to stream video to YouTube. You have the option of simultaneously streaming the content that you are sending to the ingestionAddress to this URL.
254 "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream.
255 "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. You must stream video to this URL.
256 #
257 # 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:
258 #
259 # STREAM_URL/STREAM_NAME
260 },
261 "format": "A String", # The format of the video stream that you are sending to Youtube.
262 },
263 "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description.
264 "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
265 "description": "A String", # The stream's description. The value cannot be longer than 10000 characters.
266 "publishedAt": "A String", # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
267 "title": "A String", # The stream's title. The value must be between 1 and 128 characters long.
268 },
269 "etag": "A String", # Etag of this resource.
270 "id": "A String", # The ID that YouTube assigns to uniquely identify the stream.
271 },
272 ],
273 "tokenPagination": { # Stub token pagination template to suppress results.
274 },
275 "etag": "A String", # Etag of this resource.
276 "prevPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
277 "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page.
278 "totalResults": 42, # The total number of results in the result set.
279 "resultsPerPage": 42, # The number of results included in the API response.
280 },
281 }</pre>
282</div>
283
284<div class="method">
285 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
286 <pre>Retrieves the next page of results.
287
288Args:
289 previous_request: The request for the previous page. (required)
290 previous_response: The response from the request for the previous page. (required)
291
292Returns:
293 A request object that you can call 'execute()' on to request the next
294 page. Returns None if there are no more items in the collection.
295 </pre>
296</div>
297
298<div class="method">
299 <code class="details" id="update">update(part=None, body, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</code>
300 <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.
301
302Args:
303 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.
304
305The part properties that you can include in the parameter value are id, snippet, cdn, and status.
306
307Note 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)
308 body: object, The request body. (required)
309 The object takes the form of:
310
311{ # A live stream describes a live ingestion point.
312 "status": { # Brief description of the live stream status. # The status object contains information about live stream's status.
313 "streamStatus": "A String",
314 },
315 "kind": "youtube#liveStream", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveStream".
316 "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700317 "isReusable": True or False, # Indicates whether the stream is reusable, which means that it can be bound to multiple broadcasts. It is common for broadcasters to reuse the same stream for many different broadcasts if those broadcasts occur at different times.
318 #
319 # 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:
320 # - A non-reusable stream can only be bound to one broadcast.
321 # - A non-reusable stream might be deleted by an automated process after the broadcast ends.
322 # - 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 -0400323 "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent.
324 },
325 "cdn": { # Brief description of the live stream cdn settings. # The cdn object defines the live stream's content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube.
326 "ingestionType": "A String", # The method or protocol used to transmit the video stream.
327 "ingestionInfo": { # Describes information necessary for ingesting an RTMP or an HTTP stream. # The ingestionInfo object contains information that YouTube provides that you need to transmit your RTMP or HTTP stream to YouTube.
328 "backupIngestionAddress": "A String", # The backup ingestion URL that you should use to stream video to YouTube. You have the option of simultaneously streaming the content that you are sending to the ingestionAddress to this URL.
329 "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream.
330 "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. You must stream video to this URL.
331 #
332 # 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:
333 #
334 # STREAM_URL/STREAM_NAME
335 },
336 "format": "A String", # The format of the video stream that you are sending to Youtube.
337 },
338 "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description.
339 "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
340 "description": "A String", # The stream's description. The value cannot be longer than 10000 characters.
341 "publishedAt": "A String", # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
342 "title": "A String", # The stream's title. The value must be between 1 and 128 characters long.
343 },
344 "etag": "A String", # Etag of this resource.
345 "id": "A String", # The ID that YouTube assigns to uniquely identify the stream.
346 }
347
348 onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
349
350The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
351 onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
352
353The 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.
354
355This 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.
356
357Returns:
358 An object of the form:
359
360 { # A live stream describes a live ingestion point.
361 "status": { # Brief description of the live stream status. # The status object contains information about live stream's status.
362 "streamStatus": "A String",
363 },
364 "kind": "youtube#liveStream", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveStream".
365 "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700366 "isReusable": True or False, # Indicates whether the stream is reusable, which means that it can be bound to multiple broadcasts. It is common for broadcasters to reuse the same stream for many different broadcasts if those broadcasts occur at different times.
367 #
368 # 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:
369 # - A non-reusable stream can only be bound to one broadcast.
370 # - A non-reusable stream might be deleted by an automated process after the broadcast ends.
371 # - 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 -0400372 "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent.
373 },
374 "cdn": { # Brief description of the live stream cdn settings. # The cdn object defines the live stream's content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube.
375 "ingestionType": "A String", # The method or protocol used to transmit the video stream.
376 "ingestionInfo": { # Describes information necessary for ingesting an RTMP or an HTTP stream. # The ingestionInfo object contains information that YouTube provides that you need to transmit your RTMP or HTTP stream to YouTube.
377 "backupIngestionAddress": "A String", # The backup ingestion URL that you should use to stream video to YouTube. You have the option of simultaneously streaming the content that you are sending to the ingestionAddress to this URL.
378 "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream.
379 "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. You must stream video to this URL.
380 #
381 # 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:
382 #
383 # STREAM_URL/STREAM_NAME
384 },
385 "format": "A String", # The format of the video stream that you are sending to Youtube.
386 },
387 "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description.
388 "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
389 "description": "A String", # The stream's description. The value cannot be longer than 10000 characters.
390 "publishedAt": "A String", # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
391 "title": "A String", # The stream's title. The value must be between 1 and 128 characters long.
392 },
393 "etag": "A String", # Etag of this resource.
394 "id": "A String", # The ID that YouTube assigns to uniquely identify the stream.
395 }</pre>
396</div>
397
398</body></html>