1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="youtube_v3.html">YouTube Data API</a> . <a href="youtube_v3.liveBroadcasts.html">liveBroadcasts</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#bind">bind(id, part, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, streamId=None)</a></code></p>
79<p class="firstline">Binds a YouTube broadcast to a stream or removes an existing binding between a broadcast and a stream. A broadcast can only be bound to one video stream, though a video stream may be bound to more than one broadcast.</p>
80<p class="toc_element">
81  <code><a href="#control">control(id, part, onBehalfOfContentOwner=None, displaySlate=None, onBehalfOfContentOwnerChannel=None, offsetTimeMs=None, walltime=None)</a></code></p>
82<p class="firstline">Controls the settings for a slate that can be displayed in the broadcast stream.</p>
83<p class="toc_element">
84  <code><a href="#delete">delete(id, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</a></code></p>
85<p class="firstline">Deletes a broadcast.</p>
86<p class="toc_element">
87  <code><a href="#insert">insert(part, body, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</a></code></p>
88<p class="firstline">Creates a broadcast.</p>
89<p class="toc_element">
90  <code><a href="#list">list(part, broadcastStatus=None, onBehalfOfContentOwner=None, pageToken=None, onBehalfOfContentOwnerChannel=None, maxResults=None, mine=None, broadcastType=None, id=None)</a></code></p>
91<p class="firstline">Returns a list of YouTube broadcasts that match the API request parameters.</p>
92<p class="toc_element">
93  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
96  <code><a href="#transition">transition(broadcastStatus, id, part, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</a></code></p>
97<p class="firstline">Changes the status of a YouTube live broadcast and initiates any processes associated with the new status. For example, when you transition a broadcast's status to testing, YouTube starts to transmit video to that broadcast's monitor stream. Before calling this method, you should confirm that the value of the status.streamStatus property for the stream bound to your broadcast is active.</p>
98<p class="toc_element">
99  <code><a href="#update">update(part, body, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</a></code></p>
100<p class="firstline">Updates a broadcast. For example, you could modify the broadcast settings defined in the liveBroadcast resource's contentDetails object.</p>
101<h3>Method Details</h3>
102<div class="method">
103    <code class="details" id="bind">bind(id, part, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, streamId=None)</code>
104  <pre>Binds a YouTube broadcast to a stream or removes an existing binding between a broadcast and a stream. A broadcast can only be bound to one video stream, though a video stream may be bound to more than one broadcast.
105
106Args:
107  id: string, The id parameter specifies the unique ID of the broadcast that is being bound to a video stream. (required)
108  part: string, The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status. (required)
109  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
110
111The 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.
112  onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
113
114The 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.
115
116This 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.
117  streamId: string, The streamId parameter specifies the unique ID of the video stream that is being bound to a broadcast. If this parameter is omitted, the API will remove any existing binding between the broadcast and a video stream.
118
119Returns:
120  An object of the form:
121
122    { # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
123    "status": { # The status object contains information about the event's status.
124      "recordingStatus": "A String", # The broadcast's recording status.
125      "privacyStatus": "A String", # The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource.
126      "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
127      "liveBroadcastPriority": "A String", # Priority of the live broadcast event (internal state).
128    },
129    "kind": "youtube#liveBroadcast", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcast".
130    "statistics": { # Statistics about the live broadcast. These represent a snapshot of the values at the time of the request. Statistics are only returned for live broadcasts. # The statistics object contains info about the event's current stats. These include concurrent viewers and total chat count. Statistics can change (in either direction) during the lifetime of an event. Statistics are only returned while the event is live.
131      "concurrentViewers": "A String", # The number of viewers currently watching the broadcast. The property and its value will be present if the broadcast has current viewers and the broadcast owner has not hidden the viewcount for the video. Note that YouTube stops tracking the number of concurrent viewers for a broadcast when the broadcast ends. So, this property would not identify the number of viewers watching an archived video of a live broadcast that already ended.
132      "totalChatCount": "A String", # The total number of live chat messages currently on the broadcast. The property and its value will be present if the broadcast is public, has the live chat feature enabled, and has at least one message. Note that this field will not be filled after the broadcast ends. So this property would not identify the number of chat messages for an archived video of a completed live broadcast.
133    },
134    "contentDetails": { # Detailed settings of a broadcast. # The contentDetails object contains information about the event's video content, such as whether the content can be shown in an embedded video player or if it will be archived and therefore available for viewing after the event has concluded.
135      "boundStreamLastUpdateTimeMs": "A String", # The date and time that the live stream referenced by boundStreamId was last updated.
136      "projection": "A String", # The projection format of this broadcast. This defaults to rectangular.
137      "enableLowLatency": True or False, # Indicates whether this broadcast has low latency enabled.
138      "monitorStream": { # Settings and Info of the monitor stream # The monitorStream object contains information about the monitor stream, which the broadcaster can use to review the event content before the broadcast stream is shown publicly.
139        "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
140        "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
141        "enableMonitorStream": True or False, # This value determines whether the monitor stream is enabled for the broadcast. If the monitor stream is enabled, then YouTube will broadcast the event content on a special stream intended only for the broadcaster's consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints.
142            #
143            # You need to set this value to true if you intend to have a broadcast delay for your event.
144            #
145            # Note: This property cannot be updated once the broadcast is in the testing or live state.
146      },
147      "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
148      "stereoLayout": "A String",
149      "mesh": "A String",
150      "latencyPreference": "A String", # If both this and enable_low_latency are set, they must match. LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW should match enable_low_latency=true LATENCY_ULTRA_LOW should have enable_low_latency omitted.
151      "enableEmbed": True or False, # This setting indicates whether the broadcast video can be played in an embedded player. If you choose to archive the video (using the enableArchive property), this setting will also apply to the archived video.
152      "enableClosedCaptions": True or False, # This setting indicates whether HTTP POST closed captioning is enabled for this broadcast. The ingestion URL of the closed captions is returned through the liveStreams API. This is mutually exclusive with using the closed_captions_type property, and is equivalent to setting closed_captions_type to CLOSED_CAPTIONS_HTTP_POST.
153      "startWithSlate": True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast's status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint's eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
154      "closedCaptionsType": "A String",
155      "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
156      "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
157          #
158          #
159          #
160          # Important: You must also set the enableDvr property's value to true if you want the playback to be available immediately after the broadcast ends. If you set this property's value to true but do not also set the enableDvr property to true, there may be a delay of around one day before the archived video will be available for playback.
161      "enableDvr": True or False, # This setting determines whether viewers can access DVR controls while watching the video. DVR controls enable the viewer to control the video playback experience by pausing, rewinding, or fast forwarding content. The default value for this property is true.
162          #
163          #
164          #
165          # Important: You must set the value to true and also set the enableArchive property's value to true if you want to make playback available immediately after the broadcast ends.
166      "enableAutoStart": True or False, # This setting indicates whether auto start is enabled for this broadcast.
167    },
168    "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
169      "actualEndTime": "A String", # The date and time that the broadcast actually ended. This information is only available once the broadcast's state is complete. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
170      "description": "A String", # The broadcast's description. As with the title, you can set this field by modifying the broadcast resource or by setting the description field of the corresponding video resource.
171      "title": "A String", # The broadcast's title. Note that the broadcast represents exactly one YouTube video. You can set this field by modifying the broadcast resource or by setting the title field of the corresponding video resource.
172      "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
173      "publishedAt": "A String", # The date and time that the broadcast was added to YouTube's live broadcast schedule. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
174      "liveChatId": "A String", # The id of the live chat for this broadcast.
175      "scheduledStartTime": "A String", # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
176      "actualStartTime": "A String", # The date and time that the broadcast actually started. This information is only available once the broadcast's state is live. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
177      "scheduledEndTime": "A String", # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
178      "isDefaultBroadcast": True or False,
179      "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the broadcast. For each nested object in this object, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
180        "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
181          "url": "A String", # The thumbnail image's URL.
182          "width": 42, # (Optional) Width of the thumbnail image.
183          "height": 42, # (Optional) Height of the thumbnail image.
184        },
185        "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
186          "url": "A String", # The thumbnail image's URL.
187          "width": 42, # (Optional) Width of the thumbnail image.
188          "height": 42, # (Optional) Height of the thumbnail image.
189        },
190        "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
191          "url": "A String", # The thumbnail image's URL.
192          "width": 42, # (Optional) Width of the thumbnail image.
193          "height": 42, # (Optional) Height of the thumbnail image.
194        },
195        "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
196          "url": "A String", # The thumbnail image's URL.
197          "width": 42, # (Optional) Width of the thumbnail image.
198          "height": 42, # (Optional) Height of the thumbnail image.
199        },
200        "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
201          "url": "A String", # The thumbnail image's URL.
202          "width": 42, # (Optional) Width of the thumbnail image.
203          "height": 42, # (Optional) Height of the thumbnail image.
204        },
205      },
206    },
207    "etag": "A String", # Etag of this resource.
208    "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
209  }</pre>
210</div>
211
212<div class="method">
213    <code class="details" id="control">control(id, part, onBehalfOfContentOwner=None, displaySlate=None, onBehalfOfContentOwnerChannel=None, offsetTimeMs=None, walltime=None)</code>
214  <pre>Controls the settings for a slate that can be displayed in the broadcast stream.
215
216Args:
217  id: string, The id parameter specifies the YouTube live broadcast ID that uniquely identifies the broadcast in which the slate is being updated. (required)
218  part: string, The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status. (required)
219  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
220
221The 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.
222  displaySlate: boolean, The displaySlate parameter specifies whether the slate is being enabled or disabled.
223  onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
224
225The 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.
226
227This 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.
228  offsetTimeMs: string, The offsetTimeMs parameter specifies a positive time offset when the specified slate change will occur. The value is measured in milliseconds from the beginning of the broadcast's monitor stream, which is the time that the testing phase for the broadcast began. Even though it is specified in milliseconds, the value is actually an approximation, and YouTube completes the requested action as closely as possible to that time.
229
230If you do not specify a value for this parameter, then YouTube performs the action as soon as possible. See the Getting started guide for more details.
231
232Important: You should only specify a value for this parameter if your broadcast stream is delayed.
233  walltime: string, The walltime parameter specifies the wall clock time at which the specified slate change will occur. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format.
234
235Returns:
236  An object of the form:
237
238    { # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
239    "status": { # The status object contains information about the event's status.
240      "recordingStatus": "A String", # The broadcast's recording status.
241      "privacyStatus": "A String", # The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource.
242      "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
243      "liveBroadcastPriority": "A String", # Priority of the live broadcast event (internal state).
244    },
245    "kind": "youtube#liveBroadcast", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcast".
246    "statistics": { # Statistics about the live broadcast. These represent a snapshot of the values at the time of the request. Statistics are only returned for live broadcasts. # The statistics object contains info about the event's current stats. These include concurrent viewers and total chat count. Statistics can change (in either direction) during the lifetime of an event. Statistics are only returned while the event is live.
247      "concurrentViewers": "A String", # The number of viewers currently watching the broadcast. The property and its value will be present if the broadcast has current viewers and the broadcast owner has not hidden the viewcount for the video. Note that YouTube stops tracking the number of concurrent viewers for a broadcast when the broadcast ends. So, this property would not identify the number of viewers watching an archived video of a live broadcast that already ended.
248      "totalChatCount": "A String", # The total number of live chat messages currently on the broadcast. The property and its value will be present if the broadcast is public, has the live chat feature enabled, and has at least one message. Note that this field will not be filled after the broadcast ends. So this property would not identify the number of chat messages for an archived video of a completed live broadcast.
249    },
250    "contentDetails": { # Detailed settings of a broadcast. # The contentDetails object contains information about the event's video content, such as whether the content can be shown in an embedded video player or if it will be archived and therefore available for viewing after the event has concluded.
251      "boundStreamLastUpdateTimeMs": "A String", # The date and time that the live stream referenced by boundStreamId was last updated.
252      "projection": "A String", # The projection format of this broadcast. This defaults to rectangular.
253      "enableLowLatency": True or False, # Indicates whether this broadcast has low latency enabled.
254      "monitorStream": { # Settings and Info of the monitor stream # The monitorStream object contains information about the monitor stream, which the broadcaster can use to review the event content before the broadcast stream is shown publicly.
255        "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
256        "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
257        "enableMonitorStream": True or False, # This value determines whether the monitor stream is enabled for the broadcast. If the monitor stream is enabled, then YouTube will broadcast the event content on a special stream intended only for the broadcaster's consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints.
258            #
259            # You need to set this value to true if you intend to have a broadcast delay for your event.
260            #
261            # Note: This property cannot be updated once the broadcast is in the testing or live state.
262      },
263      "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
264      "stereoLayout": "A String",
265      "mesh": "A String",
266      "latencyPreference": "A String", # If both this and enable_low_latency are set, they must match. LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW should match enable_low_latency=true LATENCY_ULTRA_LOW should have enable_low_latency omitted.
267      "enableEmbed": True or False, # This setting indicates whether the broadcast video can be played in an embedded player. If you choose to archive the video (using the enableArchive property), this setting will also apply to the archived video.
268      "enableClosedCaptions": True or False, # This setting indicates whether HTTP POST closed captioning is enabled for this broadcast. The ingestion URL of the closed captions is returned through the liveStreams API. This is mutually exclusive with using the closed_captions_type property, and is equivalent to setting closed_captions_type to CLOSED_CAPTIONS_HTTP_POST.
269      "startWithSlate": True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast's status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint's eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
270      "closedCaptionsType": "A String",
271      "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
272      "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
273          #
274          #
275          #
276          # Important: You must also set the enableDvr property's value to true if you want the playback to be available immediately after the broadcast ends. If you set this property's value to true but do not also set the enableDvr property to true, there may be a delay of around one day before the archived video will be available for playback.
277      "enableDvr": True or False, # This setting determines whether viewers can access DVR controls while watching the video. DVR controls enable the viewer to control the video playback experience by pausing, rewinding, or fast forwarding content. The default value for this property is true.
278          #
279          #
280          #
281          # Important: You must set the value to true and also set the enableArchive property's value to true if you want to make playback available immediately after the broadcast ends.
282      "enableAutoStart": True or False, # This setting indicates whether auto start is enabled for this broadcast.
283    },
284    "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
285      "actualEndTime": "A String", # The date and time that the broadcast actually ended. This information is only available once the broadcast's state is complete. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
286      "description": "A String", # The broadcast's description. As with the title, you can set this field by modifying the broadcast resource or by setting the description field of the corresponding video resource.
287      "title": "A String", # The broadcast's title. Note that the broadcast represents exactly one YouTube video. You can set this field by modifying the broadcast resource or by setting the title field of the corresponding video resource.
288      "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
289      "publishedAt": "A String", # The date and time that the broadcast was added to YouTube's live broadcast schedule. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
290      "liveChatId": "A String", # The id of the live chat for this broadcast.
291      "scheduledStartTime": "A String", # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
292      "actualStartTime": "A String", # The date and time that the broadcast actually started. This information is only available once the broadcast's state is live. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
293      "scheduledEndTime": "A String", # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
294      "isDefaultBroadcast": True or False,
295      "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the broadcast. For each nested object in this object, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
296        "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
297          "url": "A String", # The thumbnail image's URL.
298          "width": 42, # (Optional) Width of the thumbnail image.
299          "height": 42, # (Optional) Height of the thumbnail image.
300        },
301        "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
302          "url": "A String", # The thumbnail image's URL.
303          "width": 42, # (Optional) Width of the thumbnail image.
304          "height": 42, # (Optional) Height of the thumbnail image.
305        },
306        "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
307          "url": "A String", # The thumbnail image's URL.
308          "width": 42, # (Optional) Width of the thumbnail image.
309          "height": 42, # (Optional) Height of the thumbnail image.
310        },
311        "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
312          "url": "A String", # The thumbnail image's URL.
313          "width": 42, # (Optional) Width of the thumbnail image.
314          "height": 42, # (Optional) Height of the thumbnail image.
315        },
316        "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
317          "url": "A String", # The thumbnail image's URL.
318          "width": 42, # (Optional) Width of the thumbnail image.
319          "height": 42, # (Optional) Height of the thumbnail image.
320        },
321      },
322    },
323    "etag": "A String", # Etag of this resource.
324    "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
325  }</pre>
326</div>
327
328<div class="method">
329    <code class="details" id="delete">delete(id, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</code>
330  <pre>Deletes a broadcast.
331
332Args:
333  id: string, The id parameter specifies the YouTube live broadcast ID for the resource that is being deleted. (required)
334  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
335
336The 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.
337  onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
338
339The 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.
340
341This 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.
342</pre>
343</div>
344
345<div class="method">
346    <code class="details" id="insert">insert(part, body, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</code>
347  <pre>Creates a broadcast.
348
349Args:
350  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.
351
352The part properties that you can include in the parameter value are id, snippet, contentDetails, and status. (required)
353  body: object, The request body. (required)
354    The object takes the form of:
355
356{ # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
357  "status": { # The status object contains information about the event's status.
358    "recordingStatus": "A String", # The broadcast's recording status.
359    "privacyStatus": "A String", # The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource.
360    "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
361    "liveBroadcastPriority": "A String", # Priority of the live broadcast event (internal state).
362  },
363  "kind": "youtube#liveBroadcast", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcast".
364  "statistics": { # Statistics about the live broadcast. These represent a snapshot of the values at the time of the request. Statistics are only returned for live broadcasts. # The statistics object contains info about the event's current stats. These include concurrent viewers and total chat count. Statistics can change (in either direction) during the lifetime of an event. Statistics are only returned while the event is live.
365    "concurrentViewers": "A String", # The number of viewers currently watching the broadcast. The property and its value will be present if the broadcast has current viewers and the broadcast owner has not hidden the viewcount for the video. Note that YouTube stops tracking the number of concurrent viewers for a broadcast when the broadcast ends. So, this property would not identify the number of viewers watching an archived video of a live broadcast that already ended.
366    "totalChatCount": "A String", # The total number of live chat messages currently on the broadcast. The property and its value will be present if the broadcast is public, has the live chat feature enabled, and has at least one message. Note that this field will not be filled after the broadcast ends. So this property would not identify the number of chat messages for an archived video of a completed live broadcast.
367  },
368  "contentDetails": { # Detailed settings of a broadcast. # The contentDetails object contains information about the event's video content, such as whether the content can be shown in an embedded video player or if it will be archived and therefore available for viewing after the event has concluded.
369    "boundStreamLastUpdateTimeMs": "A String", # The date and time that the live stream referenced by boundStreamId was last updated.
370    "projection": "A String", # The projection format of this broadcast. This defaults to rectangular.
371    "enableLowLatency": True or False, # Indicates whether this broadcast has low latency enabled.
372    "monitorStream": { # Settings and Info of the monitor stream # The monitorStream object contains information about the monitor stream, which the broadcaster can use to review the event content before the broadcast stream is shown publicly.
373      "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
374      "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
375      "enableMonitorStream": True or False, # This value determines whether the monitor stream is enabled for the broadcast. If the monitor stream is enabled, then YouTube will broadcast the event content on a special stream intended only for the broadcaster's consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints.
376          #
377          # You need to set this value to true if you intend to have a broadcast delay for your event.
378          #
379          # Note: This property cannot be updated once the broadcast is in the testing or live state.
380    },
381    "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
382    "stereoLayout": "A String",
383    "mesh": "A String",
384    "latencyPreference": "A String", # If both this and enable_low_latency are set, they must match. LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW should match enable_low_latency=true LATENCY_ULTRA_LOW should have enable_low_latency omitted.
385    "enableEmbed": True or False, # This setting indicates whether the broadcast video can be played in an embedded player. If you choose to archive the video (using the enableArchive property), this setting will also apply to the archived video.
386    "enableClosedCaptions": True or False, # This setting indicates whether HTTP POST closed captioning is enabled for this broadcast. The ingestion URL of the closed captions is returned through the liveStreams API. This is mutually exclusive with using the closed_captions_type property, and is equivalent to setting closed_captions_type to CLOSED_CAPTIONS_HTTP_POST.
387    "startWithSlate": True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast's status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint's eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
388    "closedCaptionsType": "A String",
389    "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
390    "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
391        #
392        #
393        #
394        # Important: You must also set the enableDvr property's value to true if you want the playback to be available immediately after the broadcast ends. If you set this property's value to true but do not also set the enableDvr property to true, there may be a delay of around one day before the archived video will be available for playback.
395    "enableDvr": True or False, # This setting determines whether viewers can access DVR controls while watching the video. DVR controls enable the viewer to control the video playback experience by pausing, rewinding, or fast forwarding content. The default value for this property is true.
396        #
397        #
398        #
399        # Important: You must set the value to true and also set the enableArchive property's value to true if you want to make playback available immediately after the broadcast ends.
400    "enableAutoStart": True or False, # This setting indicates whether auto start is enabled for this broadcast.
401  },
402  "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
403    "actualEndTime": "A String", # The date and time that the broadcast actually ended. This information is only available once the broadcast's state is complete. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
404    "description": "A String", # The broadcast's description. As with the title, you can set this field by modifying the broadcast resource or by setting the description field of the corresponding video resource.
405    "title": "A String", # The broadcast's title. Note that the broadcast represents exactly one YouTube video. You can set this field by modifying the broadcast resource or by setting the title field of the corresponding video resource.
406    "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
407    "publishedAt": "A String", # The date and time that the broadcast was added to YouTube's live broadcast schedule. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
408    "liveChatId": "A String", # The id of the live chat for this broadcast.
409    "scheduledStartTime": "A String", # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
410    "actualStartTime": "A String", # The date and time that the broadcast actually started. This information is only available once the broadcast's state is live. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
411    "scheduledEndTime": "A String", # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
412    "isDefaultBroadcast": True or False,
413    "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the broadcast. For each nested object in this object, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
414      "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
415        "url": "A String", # The thumbnail image's URL.
416        "width": 42, # (Optional) Width of the thumbnail image.
417        "height": 42, # (Optional) Height of the thumbnail image.
418      },
419      "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
420        "url": "A String", # The thumbnail image's URL.
421        "width": 42, # (Optional) Width of the thumbnail image.
422        "height": 42, # (Optional) Height of the thumbnail image.
423      },
424      "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
425        "url": "A String", # The thumbnail image's URL.
426        "width": 42, # (Optional) Width of the thumbnail image.
427        "height": 42, # (Optional) Height of the thumbnail image.
428      },
429      "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
430        "url": "A String", # The thumbnail image's URL.
431        "width": 42, # (Optional) Width of the thumbnail image.
432        "height": 42, # (Optional) Height of the thumbnail image.
433      },
434      "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
435        "url": "A String", # The thumbnail image's URL.
436        "width": 42, # (Optional) Width of the thumbnail image.
437        "height": 42, # (Optional) Height of the thumbnail image.
438      },
439    },
440  },
441  "etag": "A String", # Etag of this resource.
442  "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
443}
444
445  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
446
447The 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.
448  onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
449
450The 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.
451
452This 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.
453
454Returns:
455  An object of the form:
456
457    { # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
458    "status": { # The status object contains information about the event's status.
459      "recordingStatus": "A String", # The broadcast's recording status.
460      "privacyStatus": "A String", # The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource.
461      "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
462      "liveBroadcastPriority": "A String", # Priority of the live broadcast event (internal state).
463    },
464    "kind": "youtube#liveBroadcast", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcast".
465    "statistics": { # Statistics about the live broadcast. These represent a snapshot of the values at the time of the request. Statistics are only returned for live broadcasts. # The statistics object contains info about the event's current stats. These include concurrent viewers and total chat count. Statistics can change (in either direction) during the lifetime of an event. Statistics are only returned while the event is live.
466      "concurrentViewers": "A String", # The number of viewers currently watching the broadcast. The property and its value will be present if the broadcast has current viewers and the broadcast owner has not hidden the viewcount for the video. Note that YouTube stops tracking the number of concurrent viewers for a broadcast when the broadcast ends. So, this property would not identify the number of viewers watching an archived video of a live broadcast that already ended.
467      "totalChatCount": "A String", # The total number of live chat messages currently on the broadcast. The property and its value will be present if the broadcast is public, has the live chat feature enabled, and has at least one message. Note that this field will not be filled after the broadcast ends. So this property would not identify the number of chat messages for an archived video of a completed live broadcast.
468    },
469    "contentDetails": { # Detailed settings of a broadcast. # The contentDetails object contains information about the event's video content, such as whether the content can be shown in an embedded video player or if it will be archived and therefore available for viewing after the event has concluded.
470      "boundStreamLastUpdateTimeMs": "A String", # The date and time that the live stream referenced by boundStreamId was last updated.
471      "projection": "A String", # The projection format of this broadcast. This defaults to rectangular.
472      "enableLowLatency": True or False, # Indicates whether this broadcast has low latency enabled.
473      "monitorStream": { # Settings and Info of the monitor stream # The monitorStream object contains information about the monitor stream, which the broadcaster can use to review the event content before the broadcast stream is shown publicly.
474        "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
475        "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
476        "enableMonitorStream": True or False, # This value determines whether the monitor stream is enabled for the broadcast. If the monitor stream is enabled, then YouTube will broadcast the event content on a special stream intended only for the broadcaster's consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints.
477            #
478            # You need to set this value to true if you intend to have a broadcast delay for your event.
479            #
480            # Note: This property cannot be updated once the broadcast is in the testing or live state.
481      },
482      "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
483      "stereoLayout": "A String",
484      "mesh": "A String",
485      "latencyPreference": "A String", # If both this and enable_low_latency are set, they must match. LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW should match enable_low_latency=true LATENCY_ULTRA_LOW should have enable_low_latency omitted.
486      "enableEmbed": True or False, # This setting indicates whether the broadcast video can be played in an embedded player. If you choose to archive the video (using the enableArchive property), this setting will also apply to the archived video.
487      "enableClosedCaptions": True or False, # This setting indicates whether HTTP POST closed captioning is enabled for this broadcast. The ingestion URL of the closed captions is returned through the liveStreams API. This is mutually exclusive with using the closed_captions_type property, and is equivalent to setting closed_captions_type to CLOSED_CAPTIONS_HTTP_POST.
488      "startWithSlate": True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast's status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint's eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
489      "closedCaptionsType": "A String",
490      "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
491      "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
492          #
493          #
494          #
495          # Important: You must also set the enableDvr property's value to true if you want the playback to be available immediately after the broadcast ends. If you set this property's value to true but do not also set the enableDvr property to true, there may be a delay of around one day before the archived video will be available for playback.
496      "enableDvr": True or False, # This setting determines whether viewers can access DVR controls while watching the video. DVR controls enable the viewer to control the video playback experience by pausing, rewinding, or fast forwarding content. The default value for this property is true.
497          #
498          #
499          #
500          # Important: You must set the value to true and also set the enableArchive property's value to true if you want to make playback available immediately after the broadcast ends.
501      "enableAutoStart": True or False, # This setting indicates whether auto start is enabled for this broadcast.
502    },
503    "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
504      "actualEndTime": "A String", # The date and time that the broadcast actually ended. This information is only available once the broadcast's state is complete. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
505      "description": "A String", # The broadcast's description. As with the title, you can set this field by modifying the broadcast resource or by setting the description field of the corresponding video resource.
506      "title": "A String", # The broadcast's title. Note that the broadcast represents exactly one YouTube video. You can set this field by modifying the broadcast resource or by setting the title field of the corresponding video resource.
507      "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
508      "publishedAt": "A String", # The date and time that the broadcast was added to YouTube's live broadcast schedule. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
509      "liveChatId": "A String", # The id of the live chat for this broadcast.
510      "scheduledStartTime": "A String", # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
511      "actualStartTime": "A String", # The date and time that the broadcast actually started. This information is only available once the broadcast's state is live. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
512      "scheduledEndTime": "A String", # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
513      "isDefaultBroadcast": True or False,
514      "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the broadcast. For each nested object in this object, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
515        "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
516          "url": "A String", # The thumbnail image's URL.
517          "width": 42, # (Optional) Width of the thumbnail image.
518          "height": 42, # (Optional) Height of the thumbnail image.
519        },
520        "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
521          "url": "A String", # The thumbnail image's URL.
522          "width": 42, # (Optional) Width of the thumbnail image.
523          "height": 42, # (Optional) Height of the thumbnail image.
524        },
525        "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
526          "url": "A String", # The thumbnail image's URL.
527          "width": 42, # (Optional) Width of the thumbnail image.
528          "height": 42, # (Optional) Height of the thumbnail image.
529        },
530        "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
531          "url": "A String", # The thumbnail image's URL.
532          "width": 42, # (Optional) Width of the thumbnail image.
533          "height": 42, # (Optional) Height of the thumbnail image.
534        },
535        "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
536          "url": "A String", # The thumbnail image's URL.
537          "width": 42, # (Optional) Width of the thumbnail image.
538          "height": 42, # (Optional) Height of the thumbnail image.
539        },
540      },
541    },
542    "etag": "A String", # Etag of this resource.
543    "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
544  }</pre>
545</div>
546
547<div class="method">
548    <code class="details" id="list">list(part, broadcastStatus=None, onBehalfOfContentOwner=None, pageToken=None, onBehalfOfContentOwnerChannel=None, maxResults=None, mine=None, broadcastType=None, id=None)</code>
549  <pre>Returns a list of YouTube broadcasts that match the API request parameters.
550
551Args:
552  part: string, The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status. (required)
553  broadcastStatus: string, The broadcastStatus parameter filters the API response to only include broadcasts with the specified status.
554    Allowed values
555      active - Return current live broadcasts.
556      all - Return all broadcasts.
557      completed - Return broadcasts that have already ended.
558      upcoming - Return broadcasts that have not yet started.
559  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
560
561The 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.
562  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.
563  onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
564
565The 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.
566
567This 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.
568  maxResults: integer, The maxResults parameter specifies the maximum number of items that should be returned in the result set.
569  mine: boolean, The mine parameter can be used to instruct the API to only return broadcasts owned by the authenticated user. Set the parameter value to true to only retrieve your own broadcasts.
570  broadcastType: string, The broadcastType parameter filters the API response to only include broadcasts with the specified type. This is only compatible with the mine filter for now.
571    Allowed values
572      all - Return all broadcasts.
573      event - Return only scheduled event broadcasts.
574      persistent - Return only persistent broadcasts.
575  id: string, The id parameter specifies a comma-separated list of YouTube broadcast IDs that identify the broadcasts being retrieved. In a liveBroadcast resource, the id property specifies the broadcast's ID.
576
577Returns:
578  An object of the form:
579
580    {
581    "eventId": "A String", # Serialized EventId of the request which produced this response.
582    "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.
583    "kind": "youtube#liveBroadcastListResponse", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcastListResponse".
584    "visitorId": "A String", # The visitorId identifies the visitor.
585    "items": [ # A list of broadcasts that match the request criteria.
586      { # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
587        "status": { # The status object contains information about the event's status.
588          "recordingStatus": "A String", # The broadcast's recording status.
589          "privacyStatus": "A String", # The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource.
590          "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
591          "liveBroadcastPriority": "A String", # Priority of the live broadcast event (internal state).
592        },
593        "kind": "youtube#liveBroadcast", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcast".
594        "statistics": { # Statistics about the live broadcast. These represent a snapshot of the values at the time of the request. Statistics are only returned for live broadcasts. # The statistics object contains info about the event's current stats. These include concurrent viewers and total chat count. Statistics can change (in either direction) during the lifetime of an event. Statistics are only returned while the event is live.
595          "concurrentViewers": "A String", # The number of viewers currently watching the broadcast. The property and its value will be present if the broadcast has current viewers and the broadcast owner has not hidden the viewcount for the video. Note that YouTube stops tracking the number of concurrent viewers for a broadcast when the broadcast ends. So, this property would not identify the number of viewers watching an archived video of a live broadcast that already ended.
596          "totalChatCount": "A String", # The total number of live chat messages currently on the broadcast. The property and its value will be present if the broadcast is public, has the live chat feature enabled, and has at least one message. Note that this field will not be filled after the broadcast ends. So this property would not identify the number of chat messages for an archived video of a completed live broadcast.
597        },
598        "contentDetails": { # Detailed settings of a broadcast. # The contentDetails object contains information about the event's video content, such as whether the content can be shown in an embedded video player or if it will be archived and therefore available for viewing after the event has concluded.
599          "boundStreamLastUpdateTimeMs": "A String", # The date and time that the live stream referenced by boundStreamId was last updated.
600          "projection": "A String", # The projection format of this broadcast. This defaults to rectangular.
601          "enableLowLatency": True or False, # Indicates whether this broadcast has low latency enabled.
602          "monitorStream": { # Settings and Info of the monitor stream # The monitorStream object contains information about the monitor stream, which the broadcaster can use to review the event content before the broadcast stream is shown publicly.
603            "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
604            "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
605            "enableMonitorStream": True or False, # This value determines whether the monitor stream is enabled for the broadcast. If the monitor stream is enabled, then YouTube will broadcast the event content on a special stream intended only for the broadcaster's consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints.
606                #
607                # You need to set this value to true if you intend to have a broadcast delay for your event.
608                #
609                # Note: This property cannot be updated once the broadcast is in the testing or live state.
610          },
611          "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
612          "stereoLayout": "A String",
613          "mesh": "A String",
614          "latencyPreference": "A String", # If both this and enable_low_latency are set, they must match. LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW should match enable_low_latency=true LATENCY_ULTRA_LOW should have enable_low_latency omitted.
615          "enableEmbed": True or False, # This setting indicates whether the broadcast video can be played in an embedded player. If you choose to archive the video (using the enableArchive property), this setting will also apply to the archived video.
616          "enableClosedCaptions": True or False, # This setting indicates whether HTTP POST closed captioning is enabled for this broadcast. The ingestion URL of the closed captions is returned through the liveStreams API. This is mutually exclusive with using the closed_captions_type property, and is equivalent to setting closed_captions_type to CLOSED_CAPTIONS_HTTP_POST.
617          "startWithSlate": True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast's status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint's eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
618          "closedCaptionsType": "A String",
619          "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
620          "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
621              #
622              #
623              #
624              # Important: You must also set the enableDvr property's value to true if you want the playback to be available immediately after the broadcast ends. If you set this property's value to true but do not also set the enableDvr property to true, there may be a delay of around one day before the archived video will be available for playback.
625          "enableDvr": True or False, # This setting determines whether viewers can access DVR controls while watching the video. DVR controls enable the viewer to control the video playback experience by pausing, rewinding, or fast forwarding content. The default value for this property is true.
626              #
627              #
628              #
629              # Important: You must set the value to true and also set the enableArchive property's value to true if you want to make playback available immediately after the broadcast ends.
630          "enableAutoStart": True or False, # This setting indicates whether auto start is enabled for this broadcast.
631        },
632        "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
633          "actualEndTime": "A String", # The date and time that the broadcast actually ended. This information is only available once the broadcast's state is complete. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
634          "description": "A String", # The broadcast's description. As with the title, you can set this field by modifying the broadcast resource or by setting the description field of the corresponding video resource.
635          "title": "A String", # The broadcast's title. Note that the broadcast represents exactly one YouTube video. You can set this field by modifying the broadcast resource or by setting the title field of the corresponding video resource.
636          "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
637          "publishedAt": "A String", # The date and time that the broadcast was added to YouTube's live broadcast schedule. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
638          "liveChatId": "A String", # The id of the live chat for this broadcast.
639          "scheduledStartTime": "A String", # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
640          "actualStartTime": "A String", # The date and time that the broadcast actually started. This information is only available once the broadcast's state is live. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
641          "scheduledEndTime": "A String", # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
642          "isDefaultBroadcast": True or False,
643          "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the broadcast. For each nested object in this object, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
644            "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
645              "url": "A String", # The thumbnail image's URL.
646              "width": 42, # (Optional) Width of the thumbnail image.
647              "height": 42, # (Optional) Height of the thumbnail image.
648            },
649            "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
650              "url": "A String", # The thumbnail image's URL.
651              "width": 42, # (Optional) Width of the thumbnail image.
652              "height": 42, # (Optional) Height of the thumbnail image.
653            },
654            "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
655              "url": "A String", # The thumbnail image's URL.
656              "width": 42, # (Optional) Width of the thumbnail image.
657              "height": 42, # (Optional) Height of the thumbnail image.
658            },
659            "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
660              "url": "A String", # The thumbnail image's URL.
661              "width": 42, # (Optional) Width of the thumbnail image.
662              "height": 42, # (Optional) Height of the thumbnail image.
663            },
664            "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
665              "url": "A String", # The thumbnail image's URL.
666              "width": 42, # (Optional) Width of the thumbnail image.
667              "height": 42, # (Optional) Height of the thumbnail image.
668            },
669          },
670        },
671        "etag": "A String", # Etag of this resource.
672        "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
673      },
674    ],
675    "tokenPagination": { # Stub token pagination template to suppress results.
676    },
677    "etag": "A String", # Etag of this resource.
678    "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.
679    "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page.
680      "totalResults": 42, # The total number of results in the result set.
681      "resultsPerPage": 42, # The number of results included in the API response.
682    },
683  }</pre>
684</div>
685
686<div class="method">
687    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
688  <pre>Retrieves the next page of results.
689
690Args:
691  previous_request: The request for the previous page. (required)
692  previous_response: The response from the request for the previous page. (required)
693
694Returns:
695  A request object that you can call 'execute()' on to request the next
696  page. Returns None if there are no more items in the collection.
697    </pre>
698</div>
699
700<div class="method">
701    <code class="details" id="transition">transition(broadcastStatus, id, part, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</code>
702  <pre>Changes the status of a YouTube live broadcast and initiates any processes associated with the new status. For example, when you transition a broadcast's status to testing, YouTube starts to transmit video to that broadcast's monitor stream. Before calling this method, you should confirm that the value of the status.streamStatus property for the stream bound to your broadcast is active.
703
704Args:
705  broadcastStatus: string, The broadcastStatus parameter identifies the state to which the broadcast is changing. Note that to transition a broadcast to either the testing or live state, the status.streamStatus must be active for the stream that the broadcast is bound to. (required)
706    Allowed values
707      complete - The broadcast is over. YouTube stops transmitting video.
708      live - The broadcast is visible to its audience. YouTube transmits video to the broadcast's monitor stream and its broadcast stream.
709      testing - Start testing the broadcast. YouTube transmits video to the broadcast's monitor stream. Note that you can only transition a broadcast to the testing state if its contentDetails.monitorStream.enableMonitorStream property is set to true.
710  id: string, The id parameter specifies the unique ID of the broadcast that is transitioning to another status. (required)
711  part: string, The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status. (required)
712  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
713
714The 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.
715  onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
716
717The 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.
718
719This 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.
720
721Returns:
722  An object of the form:
723
724    { # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
725    "status": { # The status object contains information about the event's status.
726      "recordingStatus": "A String", # The broadcast's recording status.
727      "privacyStatus": "A String", # The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource.
728      "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
729      "liveBroadcastPriority": "A String", # Priority of the live broadcast event (internal state).
730    },
731    "kind": "youtube#liveBroadcast", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcast".
732    "statistics": { # Statistics about the live broadcast. These represent a snapshot of the values at the time of the request. Statistics are only returned for live broadcasts. # The statistics object contains info about the event's current stats. These include concurrent viewers and total chat count. Statistics can change (in either direction) during the lifetime of an event. Statistics are only returned while the event is live.
733      "concurrentViewers": "A String", # The number of viewers currently watching the broadcast. The property and its value will be present if the broadcast has current viewers and the broadcast owner has not hidden the viewcount for the video. Note that YouTube stops tracking the number of concurrent viewers for a broadcast when the broadcast ends. So, this property would not identify the number of viewers watching an archived video of a live broadcast that already ended.
734      "totalChatCount": "A String", # The total number of live chat messages currently on the broadcast. The property and its value will be present if the broadcast is public, has the live chat feature enabled, and has at least one message. Note that this field will not be filled after the broadcast ends. So this property would not identify the number of chat messages for an archived video of a completed live broadcast.
735    },
736    "contentDetails": { # Detailed settings of a broadcast. # The contentDetails object contains information about the event's video content, such as whether the content can be shown in an embedded video player or if it will be archived and therefore available for viewing after the event has concluded.
737      "boundStreamLastUpdateTimeMs": "A String", # The date and time that the live stream referenced by boundStreamId was last updated.
738      "projection": "A String", # The projection format of this broadcast. This defaults to rectangular.
739      "enableLowLatency": True or False, # Indicates whether this broadcast has low latency enabled.
740      "monitorStream": { # Settings and Info of the monitor stream # The monitorStream object contains information about the monitor stream, which the broadcaster can use to review the event content before the broadcast stream is shown publicly.
741        "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
742        "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
743        "enableMonitorStream": True or False, # This value determines whether the monitor stream is enabled for the broadcast. If the monitor stream is enabled, then YouTube will broadcast the event content on a special stream intended only for the broadcaster's consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints.
744            #
745            # You need to set this value to true if you intend to have a broadcast delay for your event.
746            #
747            # Note: This property cannot be updated once the broadcast is in the testing or live state.
748      },
749      "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
750      "stereoLayout": "A String",
751      "mesh": "A String",
752      "latencyPreference": "A String", # If both this and enable_low_latency are set, they must match. LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW should match enable_low_latency=true LATENCY_ULTRA_LOW should have enable_low_latency omitted.
753      "enableEmbed": True or False, # This setting indicates whether the broadcast video can be played in an embedded player. If you choose to archive the video (using the enableArchive property), this setting will also apply to the archived video.
754      "enableClosedCaptions": True or False, # This setting indicates whether HTTP POST closed captioning is enabled for this broadcast. The ingestion URL of the closed captions is returned through the liveStreams API. This is mutually exclusive with using the closed_captions_type property, and is equivalent to setting closed_captions_type to CLOSED_CAPTIONS_HTTP_POST.
755      "startWithSlate": True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast's status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint's eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
756      "closedCaptionsType": "A String",
757      "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
758      "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
759          #
760          #
761          #
762          # Important: You must also set the enableDvr property's value to true if you want the playback to be available immediately after the broadcast ends. If you set this property's value to true but do not also set the enableDvr property to true, there may be a delay of around one day before the archived video will be available for playback.
763      "enableDvr": True or False, # This setting determines whether viewers can access DVR controls while watching the video. DVR controls enable the viewer to control the video playback experience by pausing, rewinding, or fast forwarding content. The default value for this property is true.
764          #
765          #
766          #
767          # Important: You must set the value to true and also set the enableArchive property's value to true if you want to make playback available immediately after the broadcast ends.
768      "enableAutoStart": True or False, # This setting indicates whether auto start is enabled for this broadcast.
769    },
770    "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
771      "actualEndTime": "A String", # The date and time that the broadcast actually ended. This information is only available once the broadcast's state is complete. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
772      "description": "A String", # The broadcast's description. As with the title, you can set this field by modifying the broadcast resource or by setting the description field of the corresponding video resource.
773      "title": "A String", # The broadcast's title. Note that the broadcast represents exactly one YouTube video. You can set this field by modifying the broadcast resource or by setting the title field of the corresponding video resource.
774      "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
775      "publishedAt": "A String", # The date and time that the broadcast was added to YouTube's live broadcast schedule. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
776      "liveChatId": "A String", # The id of the live chat for this broadcast.
777      "scheduledStartTime": "A String", # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
778      "actualStartTime": "A String", # The date and time that the broadcast actually started. This information is only available once the broadcast's state is live. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
779      "scheduledEndTime": "A String", # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
780      "isDefaultBroadcast": True or False,
781      "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the broadcast. For each nested object in this object, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
782        "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
783          "url": "A String", # The thumbnail image's URL.
784          "width": 42, # (Optional) Width of the thumbnail image.
785          "height": 42, # (Optional) Height of the thumbnail image.
786        },
787        "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
788          "url": "A String", # The thumbnail image's URL.
789          "width": 42, # (Optional) Width of the thumbnail image.
790          "height": 42, # (Optional) Height of the thumbnail image.
791        },
792        "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
793          "url": "A String", # The thumbnail image's URL.
794          "width": 42, # (Optional) Width of the thumbnail image.
795          "height": 42, # (Optional) Height of the thumbnail image.
796        },
797        "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
798          "url": "A String", # The thumbnail image's URL.
799          "width": 42, # (Optional) Width of the thumbnail image.
800          "height": 42, # (Optional) Height of the thumbnail image.
801        },
802        "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
803          "url": "A String", # The thumbnail image's URL.
804          "width": 42, # (Optional) Width of the thumbnail image.
805          "height": 42, # (Optional) Height of the thumbnail image.
806        },
807      },
808    },
809    "etag": "A String", # Etag of this resource.
810    "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
811  }</pre>
812</div>
813
814<div class="method">
815    <code class="details" id="update">update(part, body, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</code>
816  <pre>Updates a broadcast. For example, you could modify the broadcast settings defined in the liveBroadcast resource's contentDetails object.
817
818Args:
819  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.
820
821The part properties that you can include in the parameter value are id, snippet, contentDetails, and status.
822
823Note 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. For example, a broadcast's privacy status is defined in the status part. As such, if your request is updating a private or unlisted broadcast, and the request's part parameter value includes the status part, the broadcast's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the broadcast will revert to the default privacy setting. (required)
824  body: object, The request body. (required)
825    The object takes the form of:
826
827{ # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
828  "status": { # The status object contains information about the event's status.
829    "recordingStatus": "A String", # The broadcast's recording status.
830    "privacyStatus": "A String", # The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource.
831    "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
832    "liveBroadcastPriority": "A String", # Priority of the live broadcast event (internal state).
833  },
834  "kind": "youtube#liveBroadcast", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcast".
835  "statistics": { # Statistics about the live broadcast. These represent a snapshot of the values at the time of the request. Statistics are only returned for live broadcasts. # The statistics object contains info about the event's current stats. These include concurrent viewers and total chat count. Statistics can change (in either direction) during the lifetime of an event. Statistics are only returned while the event is live.
836    "concurrentViewers": "A String", # The number of viewers currently watching the broadcast. The property and its value will be present if the broadcast has current viewers and the broadcast owner has not hidden the viewcount for the video. Note that YouTube stops tracking the number of concurrent viewers for a broadcast when the broadcast ends. So, this property would not identify the number of viewers watching an archived video of a live broadcast that already ended.
837    "totalChatCount": "A String", # The total number of live chat messages currently on the broadcast. The property and its value will be present if the broadcast is public, has the live chat feature enabled, and has at least one message. Note that this field will not be filled after the broadcast ends. So this property would not identify the number of chat messages for an archived video of a completed live broadcast.
838  },
839  "contentDetails": { # Detailed settings of a broadcast. # The contentDetails object contains information about the event's video content, such as whether the content can be shown in an embedded video player or if it will be archived and therefore available for viewing after the event has concluded.
840    "boundStreamLastUpdateTimeMs": "A String", # The date and time that the live stream referenced by boundStreamId was last updated.
841    "projection": "A String", # The projection format of this broadcast. This defaults to rectangular.
842    "enableLowLatency": True or False, # Indicates whether this broadcast has low latency enabled.
843    "monitorStream": { # Settings and Info of the monitor stream # The monitorStream object contains information about the monitor stream, which the broadcaster can use to review the event content before the broadcast stream is shown publicly.
844      "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
845      "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
846      "enableMonitorStream": True or False, # This value determines whether the monitor stream is enabled for the broadcast. If the monitor stream is enabled, then YouTube will broadcast the event content on a special stream intended only for the broadcaster's consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints.
847          #
848          # You need to set this value to true if you intend to have a broadcast delay for your event.
849          #
850          # Note: This property cannot be updated once the broadcast is in the testing or live state.
851    },
852    "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
853    "stereoLayout": "A String",
854    "mesh": "A String",
855    "latencyPreference": "A String", # If both this and enable_low_latency are set, they must match. LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW should match enable_low_latency=true LATENCY_ULTRA_LOW should have enable_low_latency omitted.
856    "enableEmbed": True or False, # This setting indicates whether the broadcast video can be played in an embedded player. If you choose to archive the video (using the enableArchive property), this setting will also apply to the archived video.
857    "enableClosedCaptions": True or False, # This setting indicates whether HTTP POST closed captioning is enabled for this broadcast. The ingestion URL of the closed captions is returned through the liveStreams API. This is mutually exclusive with using the closed_captions_type property, and is equivalent to setting closed_captions_type to CLOSED_CAPTIONS_HTTP_POST.
858    "startWithSlate": True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast's status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint's eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
859    "closedCaptionsType": "A String",
860    "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
861    "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
862        #
863        #
864        #
865        # Important: You must also set the enableDvr property's value to true if you want the playback to be available immediately after the broadcast ends. If you set this property's value to true but do not also set the enableDvr property to true, there may be a delay of around one day before the archived video will be available for playback.
866    "enableDvr": True or False, # This setting determines whether viewers can access DVR controls while watching the video. DVR controls enable the viewer to control the video playback experience by pausing, rewinding, or fast forwarding content. The default value for this property is true.
867        #
868        #
869        #
870        # Important: You must set the value to true and also set the enableArchive property's value to true if you want to make playback available immediately after the broadcast ends.
871    "enableAutoStart": True or False, # This setting indicates whether auto start is enabled for this broadcast.
872  },
873  "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
874    "actualEndTime": "A String", # The date and time that the broadcast actually ended. This information is only available once the broadcast's state is complete. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
875    "description": "A String", # The broadcast's description. As with the title, you can set this field by modifying the broadcast resource or by setting the description field of the corresponding video resource.
876    "title": "A String", # The broadcast's title. Note that the broadcast represents exactly one YouTube video. You can set this field by modifying the broadcast resource or by setting the title field of the corresponding video resource.
877    "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
878    "publishedAt": "A String", # The date and time that the broadcast was added to YouTube's live broadcast schedule. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
879    "liveChatId": "A String", # The id of the live chat for this broadcast.
880    "scheduledStartTime": "A String", # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
881    "actualStartTime": "A String", # The date and time that the broadcast actually started. This information is only available once the broadcast's state is live. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
882    "scheduledEndTime": "A String", # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
883    "isDefaultBroadcast": True or False,
884    "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the broadcast. For each nested object in this object, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
885      "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
886        "url": "A String", # The thumbnail image's URL.
887        "width": 42, # (Optional) Width of the thumbnail image.
888        "height": 42, # (Optional) Height of the thumbnail image.
889      },
890      "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
891        "url": "A String", # The thumbnail image's URL.
892        "width": 42, # (Optional) Width of the thumbnail image.
893        "height": 42, # (Optional) Height of the thumbnail image.
894      },
895      "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
896        "url": "A String", # The thumbnail image's URL.
897        "width": 42, # (Optional) Width of the thumbnail image.
898        "height": 42, # (Optional) Height of the thumbnail image.
899      },
900      "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
901        "url": "A String", # The thumbnail image's URL.
902        "width": 42, # (Optional) Width of the thumbnail image.
903        "height": 42, # (Optional) Height of the thumbnail image.
904      },
905      "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
906        "url": "A String", # The thumbnail image's URL.
907        "width": 42, # (Optional) Width of the thumbnail image.
908        "height": 42, # (Optional) Height of the thumbnail image.
909      },
910    },
911  },
912  "etag": "A String", # Etag of this resource.
913  "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
914}
915
916  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
917
918The 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.
919  onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
920
921The 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.
922
923This 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.
924
925Returns:
926  An object of the form:
927
928    { # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
929    "status": { # The status object contains information about the event's status.
930      "recordingStatus": "A String", # The broadcast's recording status.
931      "privacyStatus": "A String", # The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource.
932      "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
933      "liveBroadcastPriority": "A String", # Priority of the live broadcast event (internal state).
934    },
935    "kind": "youtube#liveBroadcast", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcast".
936    "statistics": { # Statistics about the live broadcast. These represent a snapshot of the values at the time of the request. Statistics are only returned for live broadcasts. # The statistics object contains info about the event's current stats. These include concurrent viewers and total chat count. Statistics can change (in either direction) during the lifetime of an event. Statistics are only returned while the event is live.
937      "concurrentViewers": "A String", # The number of viewers currently watching the broadcast. The property and its value will be present if the broadcast has current viewers and the broadcast owner has not hidden the viewcount for the video. Note that YouTube stops tracking the number of concurrent viewers for a broadcast when the broadcast ends. So, this property would not identify the number of viewers watching an archived video of a live broadcast that already ended.
938      "totalChatCount": "A String", # The total number of live chat messages currently on the broadcast. The property and its value will be present if the broadcast is public, has the live chat feature enabled, and has at least one message. Note that this field will not be filled after the broadcast ends. So this property would not identify the number of chat messages for an archived video of a completed live broadcast.
939    },
940    "contentDetails": { # Detailed settings of a broadcast. # The contentDetails object contains information about the event's video content, such as whether the content can be shown in an embedded video player or if it will be archived and therefore available for viewing after the event has concluded.
941      "boundStreamLastUpdateTimeMs": "A String", # The date and time that the live stream referenced by boundStreamId was last updated.
942      "projection": "A String", # The projection format of this broadcast. This defaults to rectangular.
943      "enableLowLatency": True or False, # Indicates whether this broadcast has low latency enabled.
944      "monitorStream": { # Settings and Info of the monitor stream # The monitorStream object contains information about the monitor stream, which the broadcaster can use to review the event content before the broadcast stream is shown publicly.
945        "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
946        "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
947        "enableMonitorStream": True or False, # This value determines whether the monitor stream is enabled for the broadcast. If the monitor stream is enabled, then YouTube will broadcast the event content on a special stream intended only for the broadcaster's consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints.
948            #
949            # You need to set this value to true if you intend to have a broadcast delay for your event.
950            #
951            # Note: This property cannot be updated once the broadcast is in the testing or live state.
952      },
953      "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
954      "stereoLayout": "A String",
955      "mesh": "A String",
956      "latencyPreference": "A String", # If both this and enable_low_latency are set, they must match. LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW should match enable_low_latency=true LATENCY_ULTRA_LOW should have enable_low_latency omitted.
957      "enableEmbed": True or False, # This setting indicates whether the broadcast video can be played in an embedded player. If you choose to archive the video (using the enableArchive property), this setting will also apply to the archived video.
958      "enableClosedCaptions": True or False, # This setting indicates whether HTTP POST closed captioning is enabled for this broadcast. The ingestion URL of the closed captions is returned through the liveStreams API. This is mutually exclusive with using the closed_captions_type property, and is equivalent to setting closed_captions_type to CLOSED_CAPTIONS_HTTP_POST.
959      "startWithSlate": True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast's status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint's eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
960      "closedCaptionsType": "A String",
961      "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
962      "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
963          #
964          #
965          #
966          # Important: You must also set the enableDvr property's value to true if you want the playback to be available immediately after the broadcast ends. If you set this property's value to true but do not also set the enableDvr property to true, there may be a delay of around one day before the archived video will be available for playback.
967      "enableDvr": True or False, # This setting determines whether viewers can access DVR controls while watching the video. DVR controls enable the viewer to control the video playback experience by pausing, rewinding, or fast forwarding content. The default value for this property is true.
968          #
969          #
970          #
971          # Important: You must set the value to true and also set the enableArchive property's value to true if you want to make playback available immediately after the broadcast ends.
972      "enableAutoStart": True or False, # This setting indicates whether auto start is enabled for this broadcast.
973    },
974    "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
975      "actualEndTime": "A String", # The date and time that the broadcast actually ended. This information is only available once the broadcast's state is complete. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
976      "description": "A String", # The broadcast's description. As with the title, you can set this field by modifying the broadcast resource or by setting the description field of the corresponding video resource.
977      "title": "A String", # The broadcast's title. Note that the broadcast represents exactly one YouTube video. You can set this field by modifying the broadcast resource or by setting the title field of the corresponding video resource.
978      "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
979      "publishedAt": "A String", # The date and time that the broadcast was added to YouTube's live broadcast schedule. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
980      "liveChatId": "A String", # The id of the live chat for this broadcast.
981      "scheduledStartTime": "A String", # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
982      "actualStartTime": "A String", # The date and time that the broadcast actually started. This information is only available once the broadcast's state is live. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
983      "scheduledEndTime": "A String", # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
984      "isDefaultBroadcast": True or False,
985      "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the broadcast. For each nested object in this object, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
986        "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
987          "url": "A String", # The thumbnail image's URL.
988          "width": 42, # (Optional) Width of the thumbnail image.
989          "height": 42, # (Optional) Height of the thumbnail image.
990        },
991        "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
992          "url": "A String", # The thumbnail image's URL.
993          "width": 42, # (Optional) Width of the thumbnail image.
994          "height": 42, # (Optional) Height of the thumbnail image.
995        },
996        "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
997          "url": "A String", # The thumbnail image's URL.
998          "width": 42, # (Optional) Width of the thumbnail image.
999          "height": 42, # (Optional) Height of the thumbnail image.
1000        },
1001        "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
1002          "url": "A String", # The thumbnail image's URL.
1003          "width": 42, # (Optional) Width of the thumbnail image.
1004          "height": 42, # (Optional) Height of the thumbnail image.
1005        },
1006        "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
1007          "url": "A String", # The thumbnail image's URL.
1008          "width": 42, # (Optional) Width of the thumbnail image.
1009          "height": 42, # (Optional) Height of the thumbnail image.
1010        },
1011      },
1012    },
1013    "etag": "A String", # Etag of this resource.
1014    "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
1015  }</pre>
1016</div>
1017
1018</body></html>