• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="youtube_v3.html">YouTube Data API</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    "topicDetails": {
130      "topics": [
131        {
132          "snippet": { # Information about the topic matched.
133            "releaseDate": "A String", # The date at which the topic was released. Filled for types: videoGame
134            "name": "A String", # The name of the topic.
135          },
136          "type": "A String", # The type of the topic.
137          "unmatched": True or False, # If this flag is set it means that we have not been able to match the topic title and type provided to a known entity.
138        },
139      ],
140    },
141    "kind": "youtube#liveBroadcast", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcast".
142    "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.
143      "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.
144      "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.
145    },
146    "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.
147      "projection": "A String", # The projection format of this broadcast. This defaults to rectangular.
148      "enableLowLatency": True or False, # Indicates whether this broadcast has low latency enabled.
149      "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.
150        "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
151        "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
152        "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.
153            #
154            # You need to set this value to true if you intend to have a broadcast delay for your event.
155            #
156            # Note: This property cannot be updated once the broadcast is in the testing or live state.
157      },
158      "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
159      "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.
160      "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.
161      "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.
162      "closedCaptionsType": "A String",
163      "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
164      "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
165          #
166          #
167          #
168          # 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.
169      "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.
170          #
171          #
172          #
173          # 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.
174      "boundStreamLastUpdateTimeMs": "A String", # The date and time that the live stream referenced by boundStreamId was last updated.
175    },
176    "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
177      "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.
178      "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.
179      "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.
180      "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
181      "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.
182      "liveChatId": "A String", # The id of the live chat for this broadcast.
183      "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.
184      "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.
185      "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.
186      "isDefaultBroadcast": True or False,
187      "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.
188        "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
189          "url": "A String", # The thumbnail image's URL.
190          "width": 42, # (Optional) Width of the thumbnail image.
191          "height": 42, # (Optional) Height of the thumbnail image.
192        },
193        "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
194          "url": "A String", # The thumbnail image's URL.
195          "width": 42, # (Optional) Width of the thumbnail image.
196          "height": 42, # (Optional) Height of the thumbnail image.
197        },
198        "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
199          "url": "A String", # The thumbnail image's URL.
200          "width": 42, # (Optional) Width of the thumbnail image.
201          "height": 42, # (Optional) Height of the thumbnail image.
202        },
203        "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
204          "url": "A String", # The thumbnail image's URL.
205          "width": 42, # (Optional) Width of the thumbnail image.
206          "height": 42, # (Optional) Height of the thumbnail image.
207        },
208        "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
209          "url": "A String", # The thumbnail image's URL.
210          "width": 42, # (Optional) Width of the thumbnail image.
211          "height": 42, # (Optional) Height of the thumbnail image.
212        },
213      },
214    },
215    "etag": "A String", # Etag of this resource.
216    "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
217  }</pre>
218</div>
219
220<div class="method">
221    <code class="details" id="control">control(id, part, onBehalfOfContentOwner=None, displaySlate=None, onBehalfOfContentOwnerChannel=None, offsetTimeMs=None, walltime=None)</code>
222  <pre>Controls the settings for a slate that can be displayed in the broadcast stream.
223
224Args:
225  id: string, The id parameter specifies the YouTube live broadcast ID that uniquely identifies the broadcast in which the slate is being updated. (required)
226  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)
227  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
228
229The 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.
230  displaySlate: boolean, The displaySlate parameter specifies whether the slate is being enabled or disabled.
231  onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
232
233The 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.
234
235This 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.
236  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.
237
238If 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.
239
240Important: You should only specify a value for this parameter if your broadcast stream is delayed.
241  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.
242
243Returns:
244  An object of the form:
245
246    { # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
247    "status": { # The status object contains information about the event's status.
248      "recordingStatus": "A String", # The broadcast's recording status.
249      "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.
250      "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
251      "liveBroadcastPriority": "A String", # Priority of the live broadcast event (internal state).
252    },
253    "topicDetails": {
254      "topics": [
255        {
256          "snippet": { # Information about the topic matched.
257            "releaseDate": "A String", # The date at which the topic was released. Filled for types: videoGame
258            "name": "A String", # The name of the topic.
259          },
260          "type": "A String", # The type of the topic.
261          "unmatched": True or False, # If this flag is set it means that we have not been able to match the topic title and type provided to a known entity.
262        },
263      ],
264    },
265    "kind": "youtube#liveBroadcast", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcast".
266    "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.
267      "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.
268      "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.
269    },
270    "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.
271      "projection": "A String", # The projection format of this broadcast. This defaults to rectangular.
272      "enableLowLatency": True or False, # Indicates whether this broadcast has low latency enabled.
273      "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.
274        "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
275        "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
276        "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.
277            #
278            # You need to set this value to true if you intend to have a broadcast delay for your event.
279            #
280            # Note: This property cannot be updated once the broadcast is in the testing or live state.
281      },
282      "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
283      "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.
284      "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.
285      "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.
286      "closedCaptionsType": "A String",
287      "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
288      "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
289          #
290          #
291          #
292          # 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.
293      "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.
294          #
295          #
296          #
297          # 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.
298      "boundStreamLastUpdateTimeMs": "A String", # The date and time that the live stream referenced by boundStreamId was last updated.
299    },
300    "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
301      "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.
302      "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.
303      "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.
304      "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
305      "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.
306      "liveChatId": "A String", # The id of the live chat for this broadcast.
307      "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.
308      "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.
309      "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.
310      "isDefaultBroadcast": True or False,
311      "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.
312        "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
313          "url": "A String", # The thumbnail image's URL.
314          "width": 42, # (Optional) Width of the thumbnail image.
315          "height": 42, # (Optional) Height of the thumbnail image.
316        },
317        "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
318          "url": "A String", # The thumbnail image's URL.
319          "width": 42, # (Optional) Width of the thumbnail image.
320          "height": 42, # (Optional) Height of the thumbnail image.
321        },
322        "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
323          "url": "A String", # The thumbnail image's URL.
324          "width": 42, # (Optional) Width of the thumbnail image.
325          "height": 42, # (Optional) Height of the thumbnail image.
326        },
327        "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
328          "url": "A String", # The thumbnail image's URL.
329          "width": 42, # (Optional) Width of the thumbnail image.
330          "height": 42, # (Optional) Height of the thumbnail image.
331        },
332        "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
333          "url": "A String", # The thumbnail image's URL.
334          "width": 42, # (Optional) Width of the thumbnail image.
335          "height": 42, # (Optional) Height of the thumbnail image.
336        },
337      },
338    },
339    "etag": "A String", # Etag of this resource.
340    "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
341  }</pre>
342</div>
343
344<div class="method">
345    <code class="details" id="delete">delete(id, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</code>
346  <pre>Deletes a broadcast.
347
348Args:
349  id: string, The id parameter specifies the YouTube live broadcast ID for the resource that is being deleted. (required)
350  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
351
352The 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.
353  onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
354
355The 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.
356
357This 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.
358</pre>
359</div>
360
361<div class="method">
362    <code class="details" id="insert">insert(part, body, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</code>
363  <pre>Creates a broadcast.
364
365Args:
366  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.
367
368The part properties that you can include in the parameter value are id, snippet, contentDetails, and status. (required)
369  body: object, The request body. (required)
370    The object takes the form of:
371
372{ # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
373  "status": { # The status object contains information about the event's status.
374    "recordingStatus": "A String", # The broadcast's recording status.
375    "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.
376    "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
377    "liveBroadcastPriority": "A String", # Priority of the live broadcast event (internal state).
378  },
379  "topicDetails": {
380    "topics": [
381      {
382        "snippet": { # Information about the topic matched.
383          "releaseDate": "A String", # The date at which the topic was released. Filled for types: videoGame
384          "name": "A String", # The name of the topic.
385        },
386        "type": "A String", # The type of the topic.
387        "unmatched": True or False, # If this flag is set it means that we have not been able to match the topic title and type provided to a known entity.
388      },
389    ],
390  },
391  "kind": "youtube#liveBroadcast", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcast".
392  "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.
393    "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.
394    "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.
395  },
396  "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.
397    "projection": "A String", # The projection format of this broadcast. This defaults to rectangular.
398    "enableLowLatency": True or False, # Indicates whether this broadcast has low latency enabled.
399    "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.
400      "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
401      "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
402      "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.
403          #
404          # You need to set this value to true if you intend to have a broadcast delay for your event.
405          #
406          # Note: This property cannot be updated once the broadcast is in the testing or live state.
407    },
408    "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
409    "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.
410    "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.
411    "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.
412    "closedCaptionsType": "A String",
413    "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
414    "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
415        #
416        #
417        #
418        # 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.
419    "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.
420        #
421        #
422        #
423        # 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.
424    "boundStreamLastUpdateTimeMs": "A String", # The date and time that the live stream referenced by boundStreamId was last updated.
425  },
426  "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
427    "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.
428    "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.
429    "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.
430    "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
431    "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.
432    "liveChatId": "A String", # The id of the live chat for this broadcast.
433    "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.
434    "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.
435    "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.
436    "isDefaultBroadcast": True or False,
437    "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.
438      "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
439        "url": "A String", # The thumbnail image's URL.
440        "width": 42, # (Optional) Width of the thumbnail image.
441        "height": 42, # (Optional) Height of the thumbnail image.
442      },
443      "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
444        "url": "A String", # The thumbnail image's URL.
445        "width": 42, # (Optional) Width of the thumbnail image.
446        "height": 42, # (Optional) Height of the thumbnail image.
447      },
448      "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
449        "url": "A String", # The thumbnail image's URL.
450        "width": 42, # (Optional) Width of the thumbnail image.
451        "height": 42, # (Optional) Height of the thumbnail image.
452      },
453      "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
454        "url": "A String", # The thumbnail image's URL.
455        "width": 42, # (Optional) Width of the thumbnail image.
456        "height": 42, # (Optional) Height of the thumbnail image.
457      },
458      "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
459        "url": "A String", # The thumbnail image's URL.
460        "width": 42, # (Optional) Width of the thumbnail image.
461        "height": 42, # (Optional) Height of the thumbnail image.
462      },
463    },
464  },
465  "etag": "A String", # Etag of this resource.
466  "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
467}
468
469  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
470
471The 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.
472  onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
473
474The 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.
475
476This 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.
477
478Returns:
479  An object of the form:
480
481    { # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
482    "status": { # The status object contains information about the event's status.
483      "recordingStatus": "A String", # The broadcast's recording status.
484      "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.
485      "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
486      "liveBroadcastPriority": "A String", # Priority of the live broadcast event (internal state).
487    },
488    "topicDetails": {
489      "topics": [
490        {
491          "snippet": { # Information about the topic matched.
492            "releaseDate": "A String", # The date at which the topic was released. Filled for types: videoGame
493            "name": "A String", # The name of the topic.
494          },
495          "type": "A String", # The type of the topic.
496          "unmatched": True or False, # If this flag is set it means that we have not been able to match the topic title and type provided to a known entity.
497        },
498      ],
499    },
500    "kind": "youtube#liveBroadcast", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcast".
501    "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.
502      "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.
503      "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.
504    },
505    "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.
506      "projection": "A String", # The projection format of this broadcast. This defaults to rectangular.
507      "enableLowLatency": True or False, # Indicates whether this broadcast has low latency enabled.
508      "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.
509        "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
510        "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
511        "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.
512            #
513            # You need to set this value to true if you intend to have a broadcast delay for your event.
514            #
515            # Note: This property cannot be updated once the broadcast is in the testing or live state.
516      },
517      "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
518      "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.
519      "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.
520      "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.
521      "closedCaptionsType": "A String",
522      "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
523      "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
524          #
525          #
526          #
527          # 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.
528      "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.
529          #
530          #
531          #
532          # 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.
533      "boundStreamLastUpdateTimeMs": "A String", # The date and time that the live stream referenced by boundStreamId was last updated.
534    },
535    "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
536      "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.
537      "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.
538      "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.
539      "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
540      "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.
541      "liveChatId": "A String", # The id of the live chat for this broadcast.
542      "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.
543      "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.
544      "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.
545      "isDefaultBroadcast": True or False,
546      "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.
547        "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
548          "url": "A String", # The thumbnail image's URL.
549          "width": 42, # (Optional) Width of the thumbnail image.
550          "height": 42, # (Optional) Height of the thumbnail image.
551        },
552        "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
553          "url": "A String", # The thumbnail image's URL.
554          "width": 42, # (Optional) Width of the thumbnail image.
555          "height": 42, # (Optional) Height of the thumbnail image.
556        },
557        "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
558          "url": "A String", # The thumbnail image's URL.
559          "width": 42, # (Optional) Width of the thumbnail image.
560          "height": 42, # (Optional) Height of the thumbnail image.
561        },
562        "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
563          "url": "A String", # The thumbnail image's URL.
564          "width": 42, # (Optional) Width of the thumbnail image.
565          "height": 42, # (Optional) Height of the thumbnail image.
566        },
567        "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
568          "url": "A String", # The thumbnail image's URL.
569          "width": 42, # (Optional) Width of the thumbnail image.
570          "height": 42, # (Optional) Height of the thumbnail image.
571        },
572      },
573    },
574    "etag": "A String", # Etag of this resource.
575    "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
576  }</pre>
577</div>
578
579<div class="method">
580    <code class="details" id="list">list(part, broadcastStatus=None, onBehalfOfContentOwner=None, pageToken=None, onBehalfOfContentOwnerChannel=None, maxResults=None, mine=None, broadcastType=None, id=None)</code>
581  <pre>Returns a list of YouTube broadcasts that match the API request parameters.
582
583Args:
584  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)
585  broadcastStatus: string, The broadcastStatus parameter filters the API response to only include broadcasts with the specified status.
586    Allowed values
587      active - Return current live broadcasts.
588      all - Return all broadcasts.
589      completed - Return broadcasts that have already ended.
590      upcoming - Return broadcasts that have not yet started.
591  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
592
593The 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.
594  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.
595  onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
596
597The 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.
598
599This 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.
600  maxResults: integer, The maxResults parameter specifies the maximum number of items that should be returned in the result set.
601  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.
602  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.
603    Allowed values
604      all - Return all broadcasts.
605      event - Return only scheduled event broadcasts.
606      persistent - Return only persistent broadcasts.
607  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.
608
609Returns:
610  An object of the form:
611
612    {
613    "eventId": "A String", # Serialized EventId of the request which produced this response.
614    "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.
615    "kind": "youtube#liveBroadcastListResponse", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcastListResponse".
616    "visitorId": "A String", # The visitorId identifies the visitor.
617    "items": [ # A list of broadcasts that match the request criteria.
618      { # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
619        "status": { # The status object contains information about the event's status.
620          "recordingStatus": "A String", # The broadcast's recording status.
621          "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.
622          "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
623          "liveBroadcastPriority": "A String", # Priority of the live broadcast event (internal state).
624        },
625        "topicDetails": {
626          "topics": [
627            {
628              "snippet": { # Information about the topic matched.
629                "releaseDate": "A String", # The date at which the topic was released. Filled for types: videoGame
630                "name": "A String", # The name of the topic.
631              },
632              "type": "A String", # The type of the topic.
633              "unmatched": True or False, # If this flag is set it means that we have not been able to match the topic title and type provided to a known entity.
634            },
635          ],
636        },
637        "kind": "youtube#liveBroadcast", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcast".
638        "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.
639          "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.
640          "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.
641        },
642        "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.
643          "projection": "A String", # The projection format of this broadcast. This defaults to rectangular.
644          "enableLowLatency": True or False, # Indicates whether this broadcast has low latency enabled.
645          "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.
646            "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
647            "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
648            "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.
649                #
650                # You need to set this value to true if you intend to have a broadcast delay for your event.
651                #
652                # Note: This property cannot be updated once the broadcast is in the testing or live state.
653          },
654          "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
655          "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.
656          "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.
657          "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.
658          "closedCaptionsType": "A String",
659          "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
660          "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
661              #
662              #
663              #
664              # 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.
665          "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.
666              #
667              #
668              #
669              # 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.
670          "boundStreamLastUpdateTimeMs": "A String", # The date and time that the live stream referenced by boundStreamId was last updated.
671        },
672        "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
673          "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.
674          "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.
675          "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.
676          "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
677          "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.
678          "liveChatId": "A String", # The id of the live chat for this broadcast.
679          "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.
680          "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.
681          "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.
682          "isDefaultBroadcast": True or False,
683          "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.
684            "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
685              "url": "A String", # The thumbnail image's URL.
686              "width": 42, # (Optional) Width of the thumbnail image.
687              "height": 42, # (Optional) Height of the thumbnail image.
688            },
689            "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
690              "url": "A String", # The thumbnail image's URL.
691              "width": 42, # (Optional) Width of the thumbnail image.
692              "height": 42, # (Optional) Height of the thumbnail image.
693            },
694            "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
695              "url": "A String", # The thumbnail image's URL.
696              "width": 42, # (Optional) Width of the thumbnail image.
697              "height": 42, # (Optional) Height of the thumbnail image.
698            },
699            "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
700              "url": "A String", # The thumbnail image's URL.
701              "width": 42, # (Optional) Width of the thumbnail image.
702              "height": 42, # (Optional) Height of the thumbnail image.
703            },
704            "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
705              "url": "A String", # The thumbnail image's URL.
706              "width": 42, # (Optional) Width of the thumbnail image.
707              "height": 42, # (Optional) Height of the thumbnail image.
708            },
709          },
710        },
711        "etag": "A String", # Etag of this resource.
712        "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
713      },
714    ],
715    "tokenPagination": { # Stub token pagination template to suppress results.
716    },
717    "etag": "A String", # Etag of this resource.
718    "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.
719    "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page.
720      "totalResults": 42, # The total number of results in the result set.
721      "resultsPerPage": 42, # The number of results included in the API response.
722    },
723  }</pre>
724</div>
725
726<div class="method">
727    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
728  <pre>Retrieves the next page of results.
729
730Args:
731  previous_request: The request for the previous page. (required)
732  previous_response: The response from the request for the previous page. (required)
733
734Returns:
735  A request object that you can call 'execute()' on to request the next
736  page. Returns None if there are no more items in the collection.
737    </pre>
738</div>
739
740<div class="method">
741    <code class="details" id="transition">transition(broadcastStatus, id, part, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</code>
742  <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.
743
744Args:
745  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)
746    Allowed values
747      complete - The broadcast is over. YouTube stops transmitting video.
748      live - The broadcast is visible to its audience. YouTube transmits video to the broadcast's monitor stream and its broadcast stream.
749      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.
750  id: string, The id parameter specifies the unique ID of the broadcast that is transitioning to another status. (required)
751  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)
752  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
753
754The 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.
755  onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
756
757The 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.
758
759This 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.
760
761Returns:
762  An object of the form:
763
764    { # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
765    "status": { # The status object contains information about the event's status.
766      "recordingStatus": "A String", # The broadcast's recording status.
767      "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.
768      "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
769      "liveBroadcastPriority": "A String", # Priority of the live broadcast event (internal state).
770    },
771    "topicDetails": {
772      "topics": [
773        {
774          "snippet": { # Information about the topic matched.
775            "releaseDate": "A String", # The date at which the topic was released. Filled for types: videoGame
776            "name": "A String", # The name of the topic.
777          },
778          "type": "A String", # The type of the topic.
779          "unmatched": True or False, # If this flag is set it means that we have not been able to match the topic title and type provided to a known entity.
780        },
781      ],
782    },
783    "kind": "youtube#liveBroadcast", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcast".
784    "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.
785      "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.
786      "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.
787    },
788    "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.
789      "projection": "A String", # The projection format of this broadcast. This defaults to rectangular.
790      "enableLowLatency": True or False, # Indicates whether this broadcast has low latency enabled.
791      "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.
792        "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
793        "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
794        "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.
795            #
796            # You need to set this value to true if you intend to have a broadcast delay for your event.
797            #
798            # Note: This property cannot be updated once the broadcast is in the testing or live state.
799      },
800      "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
801      "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.
802      "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.
803      "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.
804      "closedCaptionsType": "A String",
805      "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
806      "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
807          #
808          #
809          #
810          # 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.
811      "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.
812          #
813          #
814          #
815          # 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.
816      "boundStreamLastUpdateTimeMs": "A String", # The date and time that the live stream referenced by boundStreamId was last updated.
817    },
818    "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
819      "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.
820      "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.
821      "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.
822      "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
823      "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.
824      "liveChatId": "A String", # The id of the live chat for this broadcast.
825      "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.
826      "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.
827      "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.
828      "isDefaultBroadcast": True or False,
829      "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.
830        "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
831          "url": "A String", # The thumbnail image's URL.
832          "width": 42, # (Optional) Width of the thumbnail image.
833          "height": 42, # (Optional) Height of the thumbnail image.
834        },
835        "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
836          "url": "A String", # The thumbnail image's URL.
837          "width": 42, # (Optional) Width of the thumbnail image.
838          "height": 42, # (Optional) Height of the thumbnail image.
839        },
840        "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
841          "url": "A String", # The thumbnail image's URL.
842          "width": 42, # (Optional) Width of the thumbnail image.
843          "height": 42, # (Optional) Height of the thumbnail image.
844        },
845        "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
846          "url": "A String", # The thumbnail image's URL.
847          "width": 42, # (Optional) Width of the thumbnail image.
848          "height": 42, # (Optional) Height of the thumbnail image.
849        },
850        "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
851          "url": "A String", # The thumbnail image's URL.
852          "width": 42, # (Optional) Width of the thumbnail image.
853          "height": 42, # (Optional) Height of the thumbnail image.
854        },
855      },
856    },
857    "etag": "A String", # Etag of this resource.
858    "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
859  }</pre>
860</div>
861
862<div class="method">
863    <code class="details" id="update">update(part, body, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</code>
864  <pre>Updates a broadcast. For example, you could modify the broadcast settings defined in the liveBroadcast resource's contentDetails object.
865
866Args:
867  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.
868
869The part properties that you can include in the parameter value are id, snippet, contentDetails, and status.
870
871Note 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)
872  body: object, The request body. (required)
873    The object takes the form of:
874
875{ # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
876  "status": { # The status object contains information about the event's status.
877    "recordingStatus": "A String", # The broadcast's recording status.
878    "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.
879    "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
880    "liveBroadcastPriority": "A String", # Priority of the live broadcast event (internal state).
881  },
882  "topicDetails": {
883    "topics": [
884      {
885        "snippet": { # Information about the topic matched.
886          "releaseDate": "A String", # The date at which the topic was released. Filled for types: videoGame
887          "name": "A String", # The name of the topic.
888        },
889        "type": "A String", # The type of the topic.
890        "unmatched": True or False, # If this flag is set it means that we have not been able to match the topic title and type provided to a known entity.
891      },
892    ],
893  },
894  "kind": "youtube#liveBroadcast", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcast".
895  "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.
896    "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.
897    "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.
898  },
899  "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.
900    "projection": "A String", # The projection format of this broadcast. This defaults to rectangular.
901    "enableLowLatency": True or False, # Indicates whether this broadcast has low latency enabled.
902    "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.
903      "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
904      "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
905      "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.
906          #
907          # You need to set this value to true if you intend to have a broadcast delay for your event.
908          #
909          # Note: This property cannot be updated once the broadcast is in the testing or live state.
910    },
911    "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
912    "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.
913    "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.
914    "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.
915    "closedCaptionsType": "A String",
916    "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
917    "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
918        #
919        #
920        #
921        # 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.
922    "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.
923        #
924        #
925        #
926        # 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.
927    "boundStreamLastUpdateTimeMs": "A String", # The date and time that the live stream referenced by boundStreamId was last updated.
928  },
929  "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
930    "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.
931    "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.
932    "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.
933    "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
934    "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.
935    "liveChatId": "A String", # The id of the live chat for this broadcast.
936    "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.
937    "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.
938    "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.
939    "isDefaultBroadcast": True or False,
940    "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.
941      "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
942        "url": "A String", # The thumbnail image's URL.
943        "width": 42, # (Optional) Width of the thumbnail image.
944        "height": 42, # (Optional) Height of the thumbnail image.
945      },
946      "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
947        "url": "A String", # The thumbnail image's URL.
948        "width": 42, # (Optional) Width of the thumbnail image.
949        "height": 42, # (Optional) Height of the thumbnail image.
950      },
951      "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
952        "url": "A String", # The thumbnail image's URL.
953        "width": 42, # (Optional) Width of the thumbnail image.
954        "height": 42, # (Optional) Height of the thumbnail image.
955      },
956      "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
957        "url": "A String", # The thumbnail image's URL.
958        "width": 42, # (Optional) Width of the thumbnail image.
959        "height": 42, # (Optional) Height of the thumbnail image.
960      },
961      "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
962        "url": "A String", # The thumbnail image's URL.
963        "width": 42, # (Optional) Width of the thumbnail image.
964        "height": 42, # (Optional) Height of the thumbnail image.
965      },
966    },
967  },
968  "etag": "A String", # Etag of this resource.
969  "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
970}
971
972  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
973
974The 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.
975  onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
976
977The 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.
978
979This 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.
980
981Returns:
982  An object of the form:
983
984    { # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
985    "status": { # The status object contains information about the event's status.
986      "recordingStatus": "A String", # The broadcast's recording status.
987      "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.
988      "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
989      "liveBroadcastPriority": "A String", # Priority of the live broadcast event (internal state).
990    },
991    "topicDetails": {
992      "topics": [
993        {
994          "snippet": { # Information about the topic matched.
995            "releaseDate": "A String", # The date at which the topic was released. Filled for types: videoGame
996            "name": "A String", # The name of the topic.
997          },
998          "type": "A String", # The type of the topic.
999          "unmatched": True or False, # If this flag is set it means that we have not been able to match the topic title and type provided to a known entity.
1000        },
1001      ],
1002    },
1003    "kind": "youtube#liveBroadcast", # Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcast".
1004    "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.
1005      "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.
1006      "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.
1007    },
1008    "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.
1009      "projection": "A String", # The projection format of this broadcast. This defaults to rectangular.
1010      "enableLowLatency": True or False, # Indicates whether this broadcast has low latency enabled.
1011      "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.
1012        "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
1013        "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
1014        "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.
1015            #
1016            # You need to set this value to true if you intend to have a broadcast delay for your event.
1017            #
1018            # Note: This property cannot be updated once the broadcast is in the testing or live state.
1019      },
1020      "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
1021      "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.
1022      "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.
1023      "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.
1024      "closedCaptionsType": "A String",
1025      "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
1026      "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
1027          #
1028          #
1029          #
1030          # 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.
1031      "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.
1032          #
1033          #
1034          #
1035          # 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.
1036      "boundStreamLastUpdateTimeMs": "A String", # The date and time that the live stream referenced by boundStreamId was last updated.
1037    },
1038    "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
1039      "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.
1040      "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.
1041      "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.
1042      "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
1043      "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.
1044      "liveChatId": "A String", # The id of the live chat for this broadcast.
1045      "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.
1046      "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.
1047      "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.
1048      "isDefaultBroadcast": True or False,
1049      "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.
1050        "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
1051          "url": "A String", # The thumbnail image's URL.
1052          "width": 42, # (Optional) Width of the thumbnail image.
1053          "height": 42, # (Optional) Height of the thumbnail image.
1054        },
1055        "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
1056          "url": "A String", # The thumbnail image's URL.
1057          "width": 42, # (Optional) Width of the thumbnail image.
1058          "height": 42, # (Optional) Height of the thumbnail image.
1059        },
1060        "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
1061          "url": "A String", # The thumbnail image's URL.
1062          "width": 42, # (Optional) Width of the thumbnail image.
1063          "height": 42, # (Optional) Height of the thumbnail image.
1064        },
1065        "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
1066          "url": "A String", # The thumbnail image's URL.
1067          "width": 42, # (Optional) Width of the thumbnail image.
1068          "height": 42, # (Optional) Height of the thumbnail image.
1069        },
1070        "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
1071          "url": "A String", # The thumbnail image's URL.
1072          "width": 42, # (Optional) Width of the thumbnail image.
1073          "height": 42, # (Optional) Height of the thumbnail image.
1074        },
1075      },
1076    },
1077    "etag": "A String", # Etag of this resource.
1078    "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
1079  }</pre>
1080</div>
1081
1082</body></html>