blob: cd503e236cb5390843dfb33aac7ecc16318e071c [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Bu Sun Kimd059ad82020-07-22 17:02:09 -070075<h1><a href="youtube_v3.html">YouTube Data API v3</a> . <a href="youtube_v3.liveBroadcasts.html">liveBroadcasts</a></h1>
John Asmuth614db982014-04-24 15:46:26 -040076<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#bind">bind(id, part, onBehalfOfContentOwner=None, streamId=None, onBehalfOfContentOwnerChannel=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070079<p class="firstline">Bind a broadcast to a stream.</p>
Takashi Matsuo06694102015-09-11 13:55:40 -070080<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070081 <code><a href="#close">close()</a></code></p>
82<p class="firstline">Close httplib2 connections.</p>
83<p class="toc_element">
84 <code><a href="#control">control(id, part, onBehalfOfContentOwnerChannel=None, onBehalfOfContentOwner=None, displaySlate=None, walltime=None, offsetTimeMs=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Slate and recording control of the live broadcast. Support actions: slate on/off, recording start/stop/pause/resume. Design doc: goto/yt-api-liveBroadcast-control</p>
John Asmuth614db982014-04-24 15:46:26 -040086<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070087 <code><a href="#delete">delete(id, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Delete a given broadcast.</p>
John Asmuth614db982014-04-24 15:46:26 -040089<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070090 <code><a href="#insert">insert(part, body=None, onBehalfOfContentOwnerChannel=None, onBehalfOfContentOwner=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070091<p class="firstline">Inserts a new stream for the authenticated user.</p>
John Asmuth614db982014-04-24 15:46:26 -040092<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070093 <code><a href="#list">list(part, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, id=None, broadcastStatus=None, maxResults=None, pageToken=None, mine=None, broadcastType=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070094<p class="firstline">Retrieve the list of broadcasts associated with the given channel.</p>
John Asmuth614db982014-04-24 15:46:26 -040095<p class="toc_element">
96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070099 <code><a href="#transition">transition(id, broadcastStatus, part, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Transition a broadcast to a given status.</p>
John Asmuth614db982014-04-24 15:46:26 -0400101<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700102 <code><a href="#update">update(part, body=None, onBehalfOfContentOwnerChannel=None, onBehalfOfContentOwner=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700103<p class="firstline">Updates an existing broadcast for the authenticated user.</p>
John Asmuth614db982014-04-24 15:46:26 -0400104<h3>Method Details</h3>
105<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700106 <code class="details" id="bind">bind(id, part, onBehalfOfContentOwner=None, streamId=None, onBehalfOfContentOwnerChannel=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700107 <pre>Bind a broadcast to a stream.
John Asmuth614db982014-04-24 15:46:26 -0400108
109Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700110 id: string, Broadcast to bind to the stream (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700111 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) (repeated)
112 onBehalfOfContentOwner: string, *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request&#x27;s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700113 streamId: string, Stream to bind, if not set unbind the current one.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700114 onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700115 x__xgafv: string, V1 error format.
116 Allowed values
117 1 - v1 error format
118 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400119
120Returns:
121 An object of the form:
122
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700123 { # A *liveBroadcast* resource represents an event that will be streamed, via live video, on YouTube.
124 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the broadcast.
125 &quot;statistics&quot;: { # 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&#x27;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.
126 &quot;totalChatCount&quot;: &quot;A String&quot;, # 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.
John Asmuth614db982014-04-24 15:46:26 -0400127 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700128 &quot;kind&quot;: &quot;youtube#liveBroadcast&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveBroadcast&quot;.
129 &quot;contentDetails&quot;: { # Detailed settings of a broadcast. # The contentDetails object contains information about the event&#x27;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.
130 &quot;boundStreamId&quot;: &quot;A String&quot;, # This value uniquely identifies the live stream bound to the broadcast.
131 &quot;enableContentEncryption&quot;: True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
132 &quot;projection&quot;: &quot;A String&quot;, # The projection format of this broadcast. This defaults to rectangular.
133 &quot;enableClosedCaptions&quot;: 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.
134 &quot;enableDvr&quot;: 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. *Important:* You must set the value to true and also set the enableArchive property&#x27;s value to true if you want to make playback available immediately after the broadcast ends.
135 &quot;monitorStream&quot;: { # 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.
136 &quot;embedHtml&quot;: &quot;A String&quot;, # HTML code that embeds a player that plays the monitor stream.
137 &quot;enableMonitorStream&quot;: 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&#x27;s consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints. You need to set this value to true if you intend to have a broadcast delay for your event. *Note:* This property cannot be updated once the broadcast is in the testing or live state.
138 &quot;broadcastStreamDelayMs&quot;: 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
139 },
140 &quot;latencyPreference&quot;: &quot;A String&quot;, # If both this and enable_low_latency are set, they must match. LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW should match enable_low_latency=true LATENCY_ULTRA_LOW should have enable_low_latency omitted.
141 &quot;enableAutoStart&quot;: True or False, # This setting indicates whether auto start is enabled for this broadcast. The default value for this property is false. This setting can only be used by Events.
142 &quot;mesh&quot;: &quot;A String&quot;, # The mesh for projecting the video if projection is mesh. The mesh value must be a UTF-8 string containing the base-64 encoding of 3D mesh data that follows the Spherical Video V2 RFC specification for an mshp box, excluding the box size and type but including the following four reserved zero bytes for the version and flags.
143 &quot;closedCaptionsType&quot;: &quot;A String&quot;,
144 &quot;boundStreamLastUpdateTimeMs&quot;: &quot;A String&quot;, # The date and time that the live stream referenced by boundStreamId was last updated.
145 &quot;enableLowLatency&quot;: True or False, # Indicates whether this broadcast has low latency enabled.
146 &quot;enableAutoStop&quot;: True or False, # This setting indicates whether auto stop is enabled for this broadcast. The default value for this property is false. This setting can only be used by Events.
147 &quot;startWithSlate&quot;: True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast&#x27;s status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint&#x27;s eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
148 &quot;recordFromStart&quot;: True or False, # Automatically start recording after the event goes live. The default value for this property is true. *Important:* You must also set the enableDvr property&#x27;s value to true if you want the playback to be available immediately after the broadcast ends. If you set this property&#x27;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.
149 &quot;enableEmbed&quot;: 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700150 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700151 &quot;snippet&quot;: { # Basic broadcast information. # The snippet object contains basic details about the event, including its title, description, start time, and end time.
152 &quot;liveChatId&quot;: &quot;A String&quot;, # The id of the live chat for this broadcast.
153 &quot;description&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
154 &quot;actualStartTime&quot;: &quot;A String&quot;, # The date and time that the broadcast actually started. This information is only available once the broadcast&#x27;s state is live. The value is specified in ISO 8601 format.
155 &quot;actualEndTime&quot;: &quot;A String&quot;, # The date and time that the broadcast actually ended. This information is only available once the broadcast&#x27;s state is complete. The value is specified in ISO 8601 format.
156 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the broadcast was added to YouTube&#x27;s live broadcast schedule. The value is specified in ISO 8601 format.
157 &quot;thumbnails&quot;: { # 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.
158 &quot;default&quot;: { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
159 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
160 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
161 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
162 },
163 &quot;maxres&quot;: { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
164 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
165 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
166 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
167 },
168 &quot;medium&quot;: { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
169 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
170 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
171 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
172 },
173 &quot;standard&quot;: { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
174 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
175 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
176 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
177 },
178 &quot;high&quot;: { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
179 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
180 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
181 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
182 },
183 },
184 &quot;title&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
185 &quot;scheduledStartTime&quot;: &quot;A String&quot;, # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 format.
186 &quot;scheduledEndTime&quot;: &quot;A String&quot;, # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 format.
187 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
188 &quot;isDefaultBroadcast&quot;: True or False, # Indicates whether this broadcast is the default broadcast. Internal only.
189 },
190 &quot;status&quot;: { # Live broadcast state. # The status object contains information about the event&#x27;s status.
191 &quot;madeForKids&quot;: True or False, # Whether the broadcast is made for kids or not, decided by YouTube instead of the creator. This field is read only.
192 &quot;selfDeclaredMadeForKids&quot;: True or False, # This field will be set to True if the creator declares the broadcast to be kids only: go/live-cw-work.
193 &quot;privacyStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
194 &quot;lifeCycleStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;s status. The status can be updated using the API&#x27;s liveBroadcasts.transition method.
195 &quot;recordingStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;s recording status.
196 &quot;liveBroadcastPriority&quot;: &quot;A String&quot;, # Priority of the live broadcast event (internal state).
197 },
198 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
199 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400200</div>
201
202<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700203 <code class="details" id="close">close()</code>
204 <pre>Close httplib2 connections.</pre>
205</div>
206
207<div class="method">
208 <code class="details" id="control">control(id, part, onBehalfOfContentOwnerChannel=None, onBehalfOfContentOwner=None, displaySlate=None, walltime=None, offsetTimeMs=None, x__xgafv=None)</code>
209 <pre>Slate and recording control of the live broadcast. Support actions: slate on/off, recording start/stop/pause/resume. Design doc: goto/yt-api-liveBroadcast-control
John Asmuth614db982014-04-24 15:46:26 -0400210
211Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700212 id: string, Broadcast to operate. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700213 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) (repeated)
214 onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
215 onBehalfOfContentOwner: string, *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request&#x27;s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700216 displaySlate: boolean, Whether display or hide slate.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700217 walltime: string, The wall clock time at which the action should be executed. Only one of offset_time_ms and walltime may be set at a time.
218 offsetTimeMs: string, The exact time when the actions (e.g. slate on) are executed. It is an offset from the first frame of the monitor stream. If not set, it means &quot;now&quot; or ASAP. This field should not be set if the monitor stream is disabled, otherwise an error will be returned.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700219 x__xgafv: string, V1 error format.
220 Allowed values
221 1 - v1 error format
222 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400223
224Returns:
225 An object of the form:
226
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700227 { # A *liveBroadcast* resource represents an event that will be streamed, via live video, on YouTube.
228 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the broadcast.
229 &quot;statistics&quot;: { # 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&#x27;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.
230 &quot;totalChatCount&quot;: &quot;A String&quot;, # 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.
John Asmuth614db982014-04-24 15:46:26 -0400231 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700232 &quot;kind&quot;: &quot;youtube#liveBroadcast&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveBroadcast&quot;.
233 &quot;contentDetails&quot;: { # Detailed settings of a broadcast. # The contentDetails object contains information about the event&#x27;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.
234 &quot;boundStreamId&quot;: &quot;A String&quot;, # This value uniquely identifies the live stream bound to the broadcast.
235 &quot;enableContentEncryption&quot;: True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
236 &quot;projection&quot;: &quot;A String&quot;, # The projection format of this broadcast. This defaults to rectangular.
237 &quot;enableClosedCaptions&quot;: 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.
238 &quot;enableDvr&quot;: 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. *Important:* You must set the value to true and also set the enableArchive property&#x27;s value to true if you want to make playback available immediately after the broadcast ends.
239 &quot;monitorStream&quot;: { # 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.
240 &quot;embedHtml&quot;: &quot;A String&quot;, # HTML code that embeds a player that plays the monitor stream.
241 &quot;enableMonitorStream&quot;: 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&#x27;s consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints. You need to set this value to true if you intend to have a broadcast delay for your event. *Note:* This property cannot be updated once the broadcast is in the testing or live state.
242 &quot;broadcastStreamDelayMs&quot;: 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
243 },
244 &quot;latencyPreference&quot;: &quot;A String&quot;, # If both this and enable_low_latency are set, they must match. LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW should match enable_low_latency=true LATENCY_ULTRA_LOW should have enable_low_latency omitted.
245 &quot;enableAutoStart&quot;: True or False, # This setting indicates whether auto start is enabled for this broadcast. The default value for this property is false. This setting can only be used by Events.
246 &quot;mesh&quot;: &quot;A String&quot;, # The mesh for projecting the video if projection is mesh. The mesh value must be a UTF-8 string containing the base-64 encoding of 3D mesh data that follows the Spherical Video V2 RFC specification for an mshp box, excluding the box size and type but including the following four reserved zero bytes for the version and flags.
247 &quot;closedCaptionsType&quot;: &quot;A String&quot;,
248 &quot;boundStreamLastUpdateTimeMs&quot;: &quot;A String&quot;, # The date and time that the live stream referenced by boundStreamId was last updated.
249 &quot;enableLowLatency&quot;: True or False, # Indicates whether this broadcast has low latency enabled.
250 &quot;enableAutoStop&quot;: True or False, # This setting indicates whether auto stop is enabled for this broadcast. The default value for this property is false. This setting can only be used by Events.
251 &quot;startWithSlate&quot;: True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast&#x27;s status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint&#x27;s eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
252 &quot;recordFromStart&quot;: True or False, # Automatically start recording after the event goes live. The default value for this property is true. *Important:* You must also set the enableDvr property&#x27;s value to true if you want the playback to be available immediately after the broadcast ends. If you set this property&#x27;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.
253 &quot;enableEmbed&quot;: 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700254 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700255 &quot;snippet&quot;: { # Basic broadcast information. # The snippet object contains basic details about the event, including its title, description, start time, and end time.
256 &quot;liveChatId&quot;: &quot;A String&quot;, # The id of the live chat for this broadcast.
257 &quot;description&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
258 &quot;actualStartTime&quot;: &quot;A String&quot;, # The date and time that the broadcast actually started. This information is only available once the broadcast&#x27;s state is live. The value is specified in ISO 8601 format.
259 &quot;actualEndTime&quot;: &quot;A String&quot;, # The date and time that the broadcast actually ended. This information is only available once the broadcast&#x27;s state is complete. The value is specified in ISO 8601 format.
260 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the broadcast was added to YouTube&#x27;s live broadcast schedule. The value is specified in ISO 8601 format.
261 &quot;thumbnails&quot;: { # 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.
262 &quot;default&quot;: { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
263 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
264 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
265 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
266 },
267 &quot;maxres&quot;: { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
268 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
269 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
270 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
271 },
272 &quot;medium&quot;: { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
273 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
274 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
275 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
276 },
277 &quot;standard&quot;: { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
278 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
279 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
280 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
281 },
282 &quot;high&quot;: { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
283 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
284 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
285 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
286 },
287 },
288 &quot;title&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
289 &quot;scheduledStartTime&quot;: &quot;A String&quot;, # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 format.
290 &quot;scheduledEndTime&quot;: &quot;A String&quot;, # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 format.
291 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
292 &quot;isDefaultBroadcast&quot;: True or False, # Indicates whether this broadcast is the default broadcast. Internal only.
293 },
294 &quot;status&quot;: { # Live broadcast state. # The status object contains information about the event&#x27;s status.
295 &quot;madeForKids&quot;: True or False, # Whether the broadcast is made for kids or not, decided by YouTube instead of the creator. This field is read only.
296 &quot;selfDeclaredMadeForKids&quot;: True or False, # This field will be set to True if the creator declares the broadcast to be kids only: go/live-cw-work.
297 &quot;privacyStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
298 &quot;lifeCycleStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;s status. The status can be updated using the API&#x27;s liveBroadcasts.transition method.
299 &quot;recordingStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;s recording status.
300 &quot;liveBroadcastPriority&quot;: &quot;A String&quot;, # Priority of the live broadcast event (internal state).
301 },
302 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
303 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400304</div>
305
306<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700307 <code class="details" id="delete">delete(id, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, x__xgafv=None)</code>
308 <pre>Delete a given broadcast.
John Asmuth614db982014-04-24 15:46:26 -0400309
310Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700311 id: string, Broadcast to delete. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700312 onBehalfOfContentOwner: string, *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request&#x27;s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
313 onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700314 x__xgafv: string, V1 error format.
315 Allowed values
316 1 - v1 error format
317 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400318</pre>
319</div>
320
321<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700322 <code class="details" id="insert">insert(part, body=None, onBehalfOfContentOwnerChannel=None, onBehalfOfContentOwner=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700323 <pre>Inserts a new stream for the authenticated user.
John Asmuth614db982014-04-24 15:46:26 -0400324
325Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700326 part: string, The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status. (required) (repeated)
Dan O'Mearadd494642020-05-01 07:42:23 -0700327 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400328 The object takes the form of:
329
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700330{ # A *liveBroadcast* resource represents an event that will be streamed, via live video, on YouTube.
331 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the broadcast.
332 &quot;statistics&quot;: { # 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&#x27;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.
333 &quot;totalChatCount&quot;: &quot;A String&quot;, # 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.
John Asmuth614db982014-04-24 15:46:26 -0400334 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700335 &quot;kind&quot;: &quot;youtube#liveBroadcast&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveBroadcast&quot;.
336 &quot;contentDetails&quot;: { # Detailed settings of a broadcast. # The contentDetails object contains information about the event&#x27;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.
337 &quot;boundStreamId&quot;: &quot;A String&quot;, # This value uniquely identifies the live stream bound to the broadcast.
338 &quot;enableContentEncryption&quot;: True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
339 &quot;projection&quot;: &quot;A String&quot;, # The projection format of this broadcast. This defaults to rectangular.
340 &quot;enableClosedCaptions&quot;: 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.
341 &quot;enableDvr&quot;: 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. *Important:* You must set the value to true and also set the enableArchive property&#x27;s value to true if you want to make playback available immediately after the broadcast ends.
342 &quot;monitorStream&quot;: { # 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.
343 &quot;embedHtml&quot;: &quot;A String&quot;, # HTML code that embeds a player that plays the monitor stream.
344 &quot;enableMonitorStream&quot;: 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&#x27;s consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints. You need to set this value to true if you intend to have a broadcast delay for your event. *Note:* This property cannot be updated once the broadcast is in the testing or live state.
345 &quot;broadcastStreamDelayMs&quot;: 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
346 },
347 &quot;latencyPreference&quot;: &quot;A String&quot;, # If both this and enable_low_latency are set, they must match. LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW should match enable_low_latency=true LATENCY_ULTRA_LOW should have enable_low_latency omitted.
348 &quot;enableAutoStart&quot;: True or False, # This setting indicates whether auto start is enabled for this broadcast. The default value for this property is false. This setting can only be used by Events.
349 &quot;mesh&quot;: &quot;A String&quot;, # The mesh for projecting the video if projection is mesh. The mesh value must be a UTF-8 string containing the base-64 encoding of 3D mesh data that follows the Spherical Video V2 RFC specification for an mshp box, excluding the box size and type but including the following four reserved zero bytes for the version and flags.
350 &quot;closedCaptionsType&quot;: &quot;A String&quot;,
351 &quot;boundStreamLastUpdateTimeMs&quot;: &quot;A String&quot;, # The date and time that the live stream referenced by boundStreamId was last updated.
352 &quot;enableLowLatency&quot;: True or False, # Indicates whether this broadcast has low latency enabled.
353 &quot;enableAutoStop&quot;: True or False, # This setting indicates whether auto stop is enabled for this broadcast. The default value for this property is false. This setting can only be used by Events.
354 &quot;startWithSlate&quot;: True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast&#x27;s status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint&#x27;s eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
355 &quot;recordFromStart&quot;: True or False, # Automatically start recording after the event goes live. The default value for this property is true. *Important:* You must also set the enableDvr property&#x27;s value to true if you want the playback to be available immediately after the broadcast ends. If you set this property&#x27;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.
356 &quot;enableEmbed&quot;: 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700357 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700358 &quot;snippet&quot;: { # Basic broadcast information. # The snippet object contains basic details about the event, including its title, description, start time, and end time.
359 &quot;liveChatId&quot;: &quot;A String&quot;, # The id of the live chat for this broadcast.
360 &quot;description&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
361 &quot;actualStartTime&quot;: &quot;A String&quot;, # The date and time that the broadcast actually started. This information is only available once the broadcast&#x27;s state is live. The value is specified in ISO 8601 format.
362 &quot;actualEndTime&quot;: &quot;A String&quot;, # The date and time that the broadcast actually ended. This information is only available once the broadcast&#x27;s state is complete. The value is specified in ISO 8601 format.
363 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the broadcast was added to YouTube&#x27;s live broadcast schedule. The value is specified in ISO 8601 format.
364 &quot;thumbnails&quot;: { # 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.
365 &quot;default&quot;: { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
366 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
367 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
368 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
369 },
370 &quot;maxres&quot;: { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
371 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
372 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
373 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
374 },
375 &quot;medium&quot;: { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
376 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
377 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
378 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
379 },
380 &quot;standard&quot;: { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
381 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
382 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
383 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
384 },
385 &quot;high&quot;: { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
386 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
387 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
388 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
389 },
390 },
391 &quot;title&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
392 &quot;scheduledStartTime&quot;: &quot;A String&quot;, # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 format.
393 &quot;scheduledEndTime&quot;: &quot;A String&quot;, # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 format.
394 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
395 &quot;isDefaultBroadcast&quot;: True or False, # Indicates whether this broadcast is the default broadcast. Internal only.
396 },
397 &quot;status&quot;: { # Live broadcast state. # The status object contains information about the event&#x27;s status.
398 &quot;madeForKids&quot;: True or False, # Whether the broadcast is made for kids or not, decided by YouTube instead of the creator. This field is read only.
399 &quot;selfDeclaredMadeForKids&quot;: True or False, # This field will be set to True if the creator declares the broadcast to be kids only: go/live-cw-work.
400 &quot;privacyStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
401 &quot;lifeCycleStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;s status. The status can be updated using the API&#x27;s liveBroadcasts.transition method.
402 &quot;recordingStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;s recording status.
403 &quot;liveBroadcastPriority&quot;: &quot;A String&quot;, # Priority of the live broadcast event (internal state).
404 },
405 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
406 }
John Asmuth614db982014-04-24 15:46:26 -0400407
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700408 onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
409 onBehalfOfContentOwner: string, *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request&#x27;s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700410 x__xgafv: string, V1 error format.
411 Allowed values
412 1 - v1 error format
413 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400414
415Returns:
416 An object of the form:
417
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700418 { # A *liveBroadcast* resource represents an event that will be streamed, via live video, on YouTube.
419 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the broadcast.
420 &quot;statistics&quot;: { # 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&#x27;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.
421 &quot;totalChatCount&quot;: &quot;A String&quot;, # 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.
John Asmuth614db982014-04-24 15:46:26 -0400422 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700423 &quot;kind&quot;: &quot;youtube#liveBroadcast&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveBroadcast&quot;.
424 &quot;contentDetails&quot;: { # Detailed settings of a broadcast. # The contentDetails object contains information about the event&#x27;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.
425 &quot;boundStreamId&quot;: &quot;A String&quot;, # This value uniquely identifies the live stream bound to the broadcast.
426 &quot;enableContentEncryption&quot;: True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
427 &quot;projection&quot;: &quot;A String&quot;, # The projection format of this broadcast. This defaults to rectangular.
428 &quot;enableClosedCaptions&quot;: 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.
429 &quot;enableDvr&quot;: 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. *Important:* You must set the value to true and also set the enableArchive property&#x27;s value to true if you want to make playback available immediately after the broadcast ends.
430 &quot;monitorStream&quot;: { # 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.
431 &quot;embedHtml&quot;: &quot;A String&quot;, # HTML code that embeds a player that plays the monitor stream.
432 &quot;enableMonitorStream&quot;: 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&#x27;s consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints. You need to set this value to true if you intend to have a broadcast delay for your event. *Note:* This property cannot be updated once the broadcast is in the testing or live state.
433 &quot;broadcastStreamDelayMs&quot;: 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
434 },
435 &quot;latencyPreference&quot;: &quot;A String&quot;, # If both this and enable_low_latency are set, they must match. LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW should match enable_low_latency=true LATENCY_ULTRA_LOW should have enable_low_latency omitted.
436 &quot;enableAutoStart&quot;: True or False, # This setting indicates whether auto start is enabled for this broadcast. The default value for this property is false. This setting can only be used by Events.
437 &quot;mesh&quot;: &quot;A String&quot;, # The mesh for projecting the video if projection is mesh. The mesh value must be a UTF-8 string containing the base-64 encoding of 3D mesh data that follows the Spherical Video V2 RFC specification for an mshp box, excluding the box size and type but including the following four reserved zero bytes for the version and flags.
438 &quot;closedCaptionsType&quot;: &quot;A String&quot;,
439 &quot;boundStreamLastUpdateTimeMs&quot;: &quot;A String&quot;, # The date and time that the live stream referenced by boundStreamId was last updated.
440 &quot;enableLowLatency&quot;: True or False, # Indicates whether this broadcast has low latency enabled.
441 &quot;enableAutoStop&quot;: True or False, # This setting indicates whether auto stop is enabled for this broadcast. The default value for this property is false. This setting can only be used by Events.
442 &quot;startWithSlate&quot;: True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast&#x27;s status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint&#x27;s eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
443 &quot;recordFromStart&quot;: True or False, # Automatically start recording after the event goes live. The default value for this property is true. *Important:* You must also set the enableDvr property&#x27;s value to true if you want the playback to be available immediately after the broadcast ends. If you set this property&#x27;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.
444 &quot;enableEmbed&quot;: 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700445 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700446 &quot;snippet&quot;: { # Basic broadcast information. # The snippet object contains basic details about the event, including its title, description, start time, and end time.
447 &quot;liveChatId&quot;: &quot;A String&quot;, # The id of the live chat for this broadcast.
448 &quot;description&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
449 &quot;actualStartTime&quot;: &quot;A String&quot;, # The date and time that the broadcast actually started. This information is only available once the broadcast&#x27;s state is live. The value is specified in ISO 8601 format.
450 &quot;actualEndTime&quot;: &quot;A String&quot;, # The date and time that the broadcast actually ended. This information is only available once the broadcast&#x27;s state is complete. The value is specified in ISO 8601 format.
451 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the broadcast was added to YouTube&#x27;s live broadcast schedule. The value is specified in ISO 8601 format.
452 &quot;thumbnails&quot;: { # 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.
453 &quot;default&quot;: { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
454 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
455 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
456 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
457 },
458 &quot;maxres&quot;: { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
459 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
460 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
461 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
462 },
463 &quot;medium&quot;: { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
464 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
465 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
466 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
467 },
468 &quot;standard&quot;: { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
469 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
470 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
471 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
472 },
473 &quot;high&quot;: { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
474 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
475 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
476 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
477 },
478 },
479 &quot;title&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
480 &quot;scheduledStartTime&quot;: &quot;A String&quot;, # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 format.
481 &quot;scheduledEndTime&quot;: &quot;A String&quot;, # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 format.
482 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
483 &quot;isDefaultBroadcast&quot;: True or False, # Indicates whether this broadcast is the default broadcast. Internal only.
484 },
485 &quot;status&quot;: { # Live broadcast state. # The status object contains information about the event&#x27;s status.
486 &quot;madeForKids&quot;: True or False, # Whether the broadcast is made for kids or not, decided by YouTube instead of the creator. This field is read only.
487 &quot;selfDeclaredMadeForKids&quot;: True or False, # This field will be set to True if the creator declares the broadcast to be kids only: go/live-cw-work.
488 &quot;privacyStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
489 &quot;lifeCycleStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;s status. The status can be updated using the API&#x27;s liveBroadcasts.transition method.
490 &quot;recordingStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;s recording status.
491 &quot;liveBroadcastPriority&quot;: &quot;A String&quot;, # Priority of the live broadcast event (internal state).
492 },
493 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
494 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400495</div>
496
497<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700498 <code class="details" id="list">list(part, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, id=None, broadcastStatus=None, maxResults=None, pageToken=None, mine=None, broadcastType=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700499 <pre>Retrieve the list of broadcasts associated with the given channel.
John Asmuth614db982014-04-24 15:46:26 -0400500
501Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700502 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, status and statistics. (required) (repeated)
503 onBehalfOfContentOwner: string, *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request&#x27;s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
504 onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700505 id: string, Return broadcasts with the given ids from Stubby or Apiary. (repeated)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700506 broadcastStatus: string, Return broadcasts with a certain status, e.g. active broadcasts.
507 Allowed values
508 broadcastStatusFilterUnspecified -
509 all - Return all broadcasts.
510 active - Return current live broadcasts.
511 upcoming - Return broadcasts that have not yet started.
512 completed - Return broadcasts that have already ended.
513 maxResults: integer, The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
514 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.
515 mine: boolean, A parameter
516 broadcastType: string, Return only broadcasts with the selected type.
517 Allowed values
518 broadcastTypeFilterUnspecified -
519 all - Return all broadcasts.
520 event - Return only scheduled event broadcasts.
521 persistent - Return only persistent broadcasts.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700522 x__xgafv: string, V1 error format.
John Asmuth614db982014-04-24 15:46:26 -0400523 Allowed values
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700524 1 - v1 error format
525 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400526
527Returns:
528 An object of the form:
529
530 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700531 &quot;visitorId&quot;: &quot;A String&quot;, # The visitorId identifies the visitor.
532 &quot;tokenPagination&quot;: { # Stub token pagination template to suppress results.
533 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700534 &quot;items&quot;: [ # A list of broadcasts that match the request criteria.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700535 { # A *liveBroadcast* resource represents an event that will be streamed, via live video, on YouTube.
536 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the broadcast.
537 &quot;statistics&quot;: { # 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&#x27;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.
538 &quot;totalChatCount&quot;: &quot;A String&quot;, # 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.
John Asmuth614db982014-04-24 15:46:26 -0400539 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700540 &quot;kind&quot;: &quot;youtube#liveBroadcast&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveBroadcast&quot;.
541 &quot;contentDetails&quot;: { # Detailed settings of a broadcast. # The contentDetails object contains information about the event&#x27;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.
542 &quot;boundStreamId&quot;: &quot;A String&quot;, # This value uniquely identifies the live stream bound to the broadcast.
543 &quot;enableContentEncryption&quot;: True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
544 &quot;projection&quot;: &quot;A String&quot;, # The projection format of this broadcast. This defaults to rectangular.
545 &quot;enableClosedCaptions&quot;: 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.
546 &quot;enableDvr&quot;: 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. *Important:* You must set the value to true and also set the enableArchive property&#x27;s value to true if you want to make playback available immediately after the broadcast ends.
547 &quot;monitorStream&quot;: { # 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.
548 &quot;embedHtml&quot;: &quot;A String&quot;, # HTML code that embeds a player that plays the monitor stream.
549 &quot;enableMonitorStream&quot;: 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&#x27;s consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints. You need to set this value to true if you intend to have a broadcast delay for your event. *Note:* This property cannot be updated once the broadcast is in the testing or live state.
550 &quot;broadcastStreamDelayMs&quot;: 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
551 },
552 &quot;latencyPreference&quot;: &quot;A String&quot;, # If both this and enable_low_latency are set, they must match. LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW should match enable_low_latency=true LATENCY_ULTRA_LOW should have enable_low_latency omitted.
553 &quot;enableAutoStart&quot;: True or False, # This setting indicates whether auto start is enabled for this broadcast. The default value for this property is false. This setting can only be used by Events.
554 &quot;mesh&quot;: &quot;A String&quot;, # The mesh for projecting the video if projection is mesh. The mesh value must be a UTF-8 string containing the base-64 encoding of 3D mesh data that follows the Spherical Video V2 RFC specification for an mshp box, excluding the box size and type but including the following four reserved zero bytes for the version and flags.
555 &quot;closedCaptionsType&quot;: &quot;A String&quot;,
556 &quot;boundStreamLastUpdateTimeMs&quot;: &quot;A String&quot;, # The date and time that the live stream referenced by boundStreamId was last updated.
557 &quot;enableLowLatency&quot;: True or False, # Indicates whether this broadcast has low latency enabled.
558 &quot;enableAutoStop&quot;: True or False, # This setting indicates whether auto stop is enabled for this broadcast. The default value for this property is false. This setting can only be used by Events.
559 &quot;startWithSlate&quot;: True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast&#x27;s status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint&#x27;s eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
560 &quot;recordFromStart&quot;: True or False, # Automatically start recording after the event goes live. The default value for this property is true. *Important:* You must also set the enableDvr property&#x27;s value to true if you want the playback to be available immediately after the broadcast ends. If you set this property&#x27;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.
561 &quot;enableEmbed&quot;: 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700562 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700563 &quot;snippet&quot;: { # Basic broadcast information. # The snippet object contains basic details about the event, including its title, description, start time, and end time.
564 &quot;liveChatId&quot;: &quot;A String&quot;, # The id of the live chat for this broadcast.
565 &quot;description&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
566 &quot;actualStartTime&quot;: &quot;A String&quot;, # The date and time that the broadcast actually started. This information is only available once the broadcast&#x27;s state is live. The value is specified in ISO 8601 format.
567 &quot;actualEndTime&quot;: &quot;A String&quot;, # The date and time that the broadcast actually ended. This information is only available once the broadcast&#x27;s state is complete. The value is specified in ISO 8601 format.
568 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the broadcast was added to YouTube&#x27;s live broadcast schedule. The value is specified in ISO 8601 format.
569 &quot;thumbnails&quot;: { # 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.
570 &quot;default&quot;: { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
571 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
572 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
573 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
574 },
575 &quot;maxres&quot;: { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
576 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
577 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
578 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
579 },
580 &quot;medium&quot;: { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
581 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
582 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
583 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
584 },
585 &quot;standard&quot;: { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
586 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
587 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
588 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
589 },
590 &quot;high&quot;: { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
591 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
592 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
593 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
594 },
595 },
596 &quot;title&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
597 &quot;scheduledStartTime&quot;: &quot;A String&quot;, # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 format.
598 &quot;scheduledEndTime&quot;: &quot;A String&quot;, # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 format.
599 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
600 &quot;isDefaultBroadcast&quot;: True or False, # Indicates whether this broadcast is the default broadcast. Internal only.
601 },
602 &quot;status&quot;: { # Live broadcast state. # The status object contains information about the event&#x27;s status.
603 &quot;madeForKids&quot;: True or False, # Whether the broadcast is made for kids or not, decided by YouTube instead of the creator. This field is read only.
604 &quot;selfDeclaredMadeForKids&quot;: True or False, # This field will be set to True if the creator declares the broadcast to be kids only: go/live-cw-work.
605 &quot;privacyStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
606 &quot;lifeCycleStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;s status. The status can be updated using the API&#x27;s liveBroadcasts.transition method.
607 &quot;recordingStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;s recording status.
608 &quot;liveBroadcastPriority&quot;: &quot;A String&quot;, # Priority of the live broadcast event (internal state).
609 },
610 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700611 },
John Asmuth614db982014-04-24 15:46:26 -0400612 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700613 &quot;pageInfo&quot;: { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page. # General pagination information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700614 &quot;resultsPerPage&quot;: 42, # The number of results included in the API response.
615 &quot;totalResults&quot;: 42, # The total number of results in the result set.
John Asmuth614db982014-04-24 15:46:26 -0400616 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700617 &quot;prevPageToken&quot;: &quot;A String&quot;, # The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
618 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
619 &quot;eventId&quot;: &quot;A String&quot;, # Serialized EventId of the request which produced this response.
620 &quot;kind&quot;: &quot;youtube#liveBroadcastListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveBroadcastListResponse&quot;.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700621 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
John Asmuth614db982014-04-24 15:46:26 -0400622 }</pre>
623</div>
624
625<div class="method">
626 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
627 <pre>Retrieves the next page of results.
628
629Args:
630 previous_request: The request for the previous page. (required)
631 previous_response: The response from the request for the previous page. (required)
632
633Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700634 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400635 page. Returns None if there are no more items in the collection.
636 </pre>
637</div>
638
639<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700640 <code class="details" id="transition">transition(id, broadcastStatus, part, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, x__xgafv=None)</code>
641 <pre>Transition a broadcast to a given status.
John Asmuth614db982014-04-24 15:46:26 -0400642
643Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700644 id: string, Broadcast to transition. (required)
645 broadcastStatus: string, The status to which the broadcast is going to transition. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700646 Allowed values
647 statusUnspecified -
648 testing - Start testing the broadcast. YouTube transmits video to the broadcast&#x27;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.&quot;,
649 live - Return only persistent broadcasts.
650 complete - The broadcast is over. YouTube stops transmitting video.
651 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) (repeated)
652 onBehalfOfContentOwner: string, *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request&#x27;s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
653 onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700654 x__xgafv: string, V1 error format.
John Asmuth614db982014-04-24 15:46:26 -0400655 Allowed values
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700656 1 - v1 error format
657 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400658
659Returns:
660 An object of the form:
661
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700662 { # A *liveBroadcast* resource represents an event that will be streamed, via live video, on YouTube.
663 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the broadcast.
664 &quot;statistics&quot;: { # 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&#x27;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.
665 &quot;totalChatCount&quot;: &quot;A String&quot;, # 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.
John Asmuth614db982014-04-24 15:46:26 -0400666 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700667 &quot;kind&quot;: &quot;youtube#liveBroadcast&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveBroadcast&quot;.
668 &quot;contentDetails&quot;: { # Detailed settings of a broadcast. # The contentDetails object contains information about the event&#x27;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.
669 &quot;boundStreamId&quot;: &quot;A String&quot;, # This value uniquely identifies the live stream bound to the broadcast.
670 &quot;enableContentEncryption&quot;: True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
671 &quot;projection&quot;: &quot;A String&quot;, # The projection format of this broadcast. This defaults to rectangular.
672 &quot;enableClosedCaptions&quot;: 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.
673 &quot;enableDvr&quot;: 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. *Important:* You must set the value to true and also set the enableArchive property&#x27;s value to true if you want to make playback available immediately after the broadcast ends.
674 &quot;monitorStream&quot;: { # 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.
675 &quot;embedHtml&quot;: &quot;A String&quot;, # HTML code that embeds a player that plays the monitor stream.
676 &quot;enableMonitorStream&quot;: 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&#x27;s consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints. You need to set this value to true if you intend to have a broadcast delay for your event. *Note:* This property cannot be updated once the broadcast is in the testing or live state.
677 &quot;broadcastStreamDelayMs&quot;: 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
678 },
679 &quot;latencyPreference&quot;: &quot;A String&quot;, # If both this and enable_low_latency are set, they must match. LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW should match enable_low_latency=true LATENCY_ULTRA_LOW should have enable_low_latency omitted.
680 &quot;enableAutoStart&quot;: True or False, # This setting indicates whether auto start is enabled for this broadcast. The default value for this property is false. This setting can only be used by Events.
681 &quot;mesh&quot;: &quot;A String&quot;, # The mesh for projecting the video if projection is mesh. The mesh value must be a UTF-8 string containing the base-64 encoding of 3D mesh data that follows the Spherical Video V2 RFC specification for an mshp box, excluding the box size and type but including the following four reserved zero bytes for the version and flags.
682 &quot;closedCaptionsType&quot;: &quot;A String&quot;,
683 &quot;boundStreamLastUpdateTimeMs&quot;: &quot;A String&quot;, # The date and time that the live stream referenced by boundStreamId was last updated.
684 &quot;enableLowLatency&quot;: True or False, # Indicates whether this broadcast has low latency enabled.
685 &quot;enableAutoStop&quot;: True or False, # This setting indicates whether auto stop is enabled for this broadcast. The default value for this property is false. This setting can only be used by Events.
686 &quot;startWithSlate&quot;: True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast&#x27;s status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint&#x27;s eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
687 &quot;recordFromStart&quot;: True or False, # Automatically start recording after the event goes live. The default value for this property is true. *Important:* You must also set the enableDvr property&#x27;s value to true if you want the playback to be available immediately after the broadcast ends. If you set this property&#x27;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.
688 &quot;enableEmbed&quot;: 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700689 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700690 &quot;snippet&quot;: { # Basic broadcast information. # The snippet object contains basic details about the event, including its title, description, start time, and end time.
691 &quot;liveChatId&quot;: &quot;A String&quot;, # The id of the live chat for this broadcast.
692 &quot;description&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
693 &quot;actualStartTime&quot;: &quot;A String&quot;, # The date and time that the broadcast actually started. This information is only available once the broadcast&#x27;s state is live. The value is specified in ISO 8601 format.
694 &quot;actualEndTime&quot;: &quot;A String&quot;, # The date and time that the broadcast actually ended. This information is only available once the broadcast&#x27;s state is complete. The value is specified in ISO 8601 format.
695 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the broadcast was added to YouTube&#x27;s live broadcast schedule. The value is specified in ISO 8601 format.
696 &quot;thumbnails&quot;: { # 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.
697 &quot;default&quot;: { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
698 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
699 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
700 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
701 },
702 &quot;maxres&quot;: { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
703 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
704 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
705 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
706 },
707 &quot;medium&quot;: { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
708 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
709 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
710 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
711 },
712 &quot;standard&quot;: { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
713 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
714 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
715 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
716 },
717 &quot;high&quot;: { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
718 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
719 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
720 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
721 },
722 },
723 &quot;title&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
724 &quot;scheduledStartTime&quot;: &quot;A String&quot;, # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 format.
725 &quot;scheduledEndTime&quot;: &quot;A String&quot;, # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 format.
726 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
727 &quot;isDefaultBroadcast&quot;: True or False, # Indicates whether this broadcast is the default broadcast. Internal only.
728 },
729 &quot;status&quot;: { # Live broadcast state. # The status object contains information about the event&#x27;s status.
730 &quot;madeForKids&quot;: True or False, # Whether the broadcast is made for kids or not, decided by YouTube instead of the creator. This field is read only.
731 &quot;selfDeclaredMadeForKids&quot;: True or False, # This field will be set to True if the creator declares the broadcast to be kids only: go/live-cw-work.
732 &quot;privacyStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
733 &quot;lifeCycleStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;s status. The status can be updated using the API&#x27;s liveBroadcasts.transition method.
734 &quot;recordingStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;s recording status.
735 &quot;liveBroadcastPriority&quot;: &quot;A String&quot;, # Priority of the live broadcast event (internal state).
736 },
737 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
738 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400739</div>
740
741<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700742 <code class="details" id="update">update(part, body=None, onBehalfOfContentOwnerChannel=None, onBehalfOfContentOwner=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700743 <pre>Updates an existing broadcast for the authenticated user.
John Asmuth614db982014-04-24 15:46:26 -0400744
745Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700746 part: string, The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a broadcast&#x27;s privacy status is defined in the status part. As such, if your request is updating a private or unlisted broadcast, and the request&#x27;s part parameter value includes the status part, the broadcast&#x27;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) (repeated)
Dan O'Mearadd494642020-05-01 07:42:23 -0700747 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400748 The object takes the form of:
749
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700750{ # A *liveBroadcast* resource represents an event that will be streamed, via live video, on YouTube.
751 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the broadcast.
752 &quot;statistics&quot;: { # 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&#x27;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.
753 &quot;totalChatCount&quot;: &quot;A String&quot;, # 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.
John Asmuth614db982014-04-24 15:46:26 -0400754 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700755 &quot;kind&quot;: &quot;youtube#liveBroadcast&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveBroadcast&quot;.
756 &quot;contentDetails&quot;: { # Detailed settings of a broadcast. # The contentDetails object contains information about the event&#x27;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.
757 &quot;boundStreamId&quot;: &quot;A String&quot;, # This value uniquely identifies the live stream bound to the broadcast.
758 &quot;enableContentEncryption&quot;: True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
759 &quot;projection&quot;: &quot;A String&quot;, # The projection format of this broadcast. This defaults to rectangular.
760 &quot;enableClosedCaptions&quot;: 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.
761 &quot;enableDvr&quot;: 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. *Important:* You must set the value to true and also set the enableArchive property&#x27;s value to true if you want to make playback available immediately after the broadcast ends.
762 &quot;monitorStream&quot;: { # 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.
763 &quot;embedHtml&quot;: &quot;A String&quot;, # HTML code that embeds a player that plays the monitor stream.
764 &quot;enableMonitorStream&quot;: 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&#x27;s consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints. You need to set this value to true if you intend to have a broadcast delay for your event. *Note:* This property cannot be updated once the broadcast is in the testing or live state.
765 &quot;broadcastStreamDelayMs&quot;: 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
766 },
767 &quot;latencyPreference&quot;: &quot;A String&quot;, # If both this and enable_low_latency are set, they must match. LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW should match enable_low_latency=true LATENCY_ULTRA_LOW should have enable_low_latency omitted.
768 &quot;enableAutoStart&quot;: True or False, # This setting indicates whether auto start is enabled for this broadcast. The default value for this property is false. This setting can only be used by Events.
769 &quot;mesh&quot;: &quot;A String&quot;, # The mesh for projecting the video if projection is mesh. The mesh value must be a UTF-8 string containing the base-64 encoding of 3D mesh data that follows the Spherical Video V2 RFC specification for an mshp box, excluding the box size and type but including the following four reserved zero bytes for the version and flags.
770 &quot;closedCaptionsType&quot;: &quot;A String&quot;,
771 &quot;boundStreamLastUpdateTimeMs&quot;: &quot;A String&quot;, # The date and time that the live stream referenced by boundStreamId was last updated.
772 &quot;enableLowLatency&quot;: True or False, # Indicates whether this broadcast has low latency enabled.
773 &quot;enableAutoStop&quot;: True or False, # This setting indicates whether auto stop is enabled for this broadcast. The default value for this property is false. This setting can only be used by Events.
774 &quot;startWithSlate&quot;: True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast&#x27;s status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint&#x27;s eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
775 &quot;recordFromStart&quot;: True or False, # Automatically start recording after the event goes live. The default value for this property is true. *Important:* You must also set the enableDvr property&#x27;s value to true if you want the playback to be available immediately after the broadcast ends. If you set this property&#x27;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.
776 &quot;enableEmbed&quot;: 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700777 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700778 &quot;snippet&quot;: { # Basic broadcast information. # The snippet object contains basic details about the event, including its title, description, start time, and end time.
779 &quot;liveChatId&quot;: &quot;A String&quot;, # The id of the live chat for this broadcast.
780 &quot;description&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
781 &quot;actualStartTime&quot;: &quot;A String&quot;, # The date and time that the broadcast actually started. This information is only available once the broadcast&#x27;s state is live. The value is specified in ISO 8601 format.
782 &quot;actualEndTime&quot;: &quot;A String&quot;, # The date and time that the broadcast actually ended. This information is only available once the broadcast&#x27;s state is complete. The value is specified in ISO 8601 format.
783 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the broadcast was added to YouTube&#x27;s live broadcast schedule. The value is specified in ISO 8601 format.
784 &quot;thumbnails&quot;: { # 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.
785 &quot;default&quot;: { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
786 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
787 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
788 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
789 },
790 &quot;maxres&quot;: { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
791 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
792 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
793 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
794 },
795 &quot;medium&quot;: { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
796 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
797 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
798 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
799 },
800 &quot;standard&quot;: { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
801 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
802 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
803 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
804 },
805 &quot;high&quot;: { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
806 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
807 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
808 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
809 },
810 },
811 &quot;title&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
812 &quot;scheduledStartTime&quot;: &quot;A String&quot;, # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 format.
813 &quot;scheduledEndTime&quot;: &quot;A String&quot;, # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 format.
814 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
815 &quot;isDefaultBroadcast&quot;: True or False, # Indicates whether this broadcast is the default broadcast. Internal only.
816 },
817 &quot;status&quot;: { # Live broadcast state. # The status object contains information about the event&#x27;s status.
818 &quot;madeForKids&quot;: True or False, # Whether the broadcast is made for kids or not, decided by YouTube instead of the creator. This field is read only.
819 &quot;selfDeclaredMadeForKids&quot;: True or False, # This field will be set to True if the creator declares the broadcast to be kids only: go/live-cw-work.
820 &quot;privacyStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
821 &quot;lifeCycleStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;s status. The status can be updated using the API&#x27;s liveBroadcasts.transition method.
822 &quot;recordingStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;s recording status.
823 &quot;liveBroadcastPriority&quot;: &quot;A String&quot;, # Priority of the live broadcast event (internal state).
824 },
825 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
826 }
John Asmuth614db982014-04-24 15:46:26 -0400827
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700828 onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
829 onBehalfOfContentOwner: string, *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request&#x27;s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700830 x__xgafv: string, V1 error format.
831 Allowed values
832 1 - v1 error format
833 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400834
835Returns:
836 An object of the form:
837
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700838 { # A *liveBroadcast* resource represents an event that will be streamed, via live video, on YouTube.
839 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the broadcast.
840 &quot;statistics&quot;: { # 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&#x27;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.
841 &quot;totalChatCount&quot;: &quot;A String&quot;, # 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.
John Asmuth614db982014-04-24 15:46:26 -0400842 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700843 &quot;kind&quot;: &quot;youtube#liveBroadcast&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveBroadcast&quot;.
844 &quot;contentDetails&quot;: { # Detailed settings of a broadcast. # The contentDetails object contains information about the event&#x27;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.
845 &quot;boundStreamId&quot;: &quot;A String&quot;, # This value uniquely identifies the live stream bound to the broadcast.
846 &quot;enableContentEncryption&quot;: True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
847 &quot;projection&quot;: &quot;A String&quot;, # The projection format of this broadcast. This defaults to rectangular.
848 &quot;enableClosedCaptions&quot;: 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.
849 &quot;enableDvr&quot;: 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. *Important:* You must set the value to true and also set the enableArchive property&#x27;s value to true if you want to make playback available immediately after the broadcast ends.
850 &quot;monitorStream&quot;: { # 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.
851 &quot;embedHtml&quot;: &quot;A String&quot;, # HTML code that embeds a player that plays the monitor stream.
852 &quot;enableMonitorStream&quot;: 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&#x27;s consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints. You need to set this value to true if you intend to have a broadcast delay for your event. *Note:* This property cannot be updated once the broadcast is in the testing or live state.
853 &quot;broadcastStreamDelayMs&quot;: 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
854 },
855 &quot;latencyPreference&quot;: &quot;A String&quot;, # If both this and enable_low_latency are set, they must match. LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW should match enable_low_latency=true LATENCY_ULTRA_LOW should have enable_low_latency omitted.
856 &quot;enableAutoStart&quot;: True or False, # This setting indicates whether auto start is enabled for this broadcast. The default value for this property is false. This setting can only be used by Events.
857 &quot;mesh&quot;: &quot;A String&quot;, # The mesh for projecting the video if projection is mesh. The mesh value must be a UTF-8 string containing the base-64 encoding of 3D mesh data that follows the Spherical Video V2 RFC specification for an mshp box, excluding the box size and type but including the following four reserved zero bytes for the version and flags.
858 &quot;closedCaptionsType&quot;: &quot;A String&quot;,
859 &quot;boundStreamLastUpdateTimeMs&quot;: &quot;A String&quot;, # The date and time that the live stream referenced by boundStreamId was last updated.
860 &quot;enableLowLatency&quot;: True or False, # Indicates whether this broadcast has low latency enabled.
861 &quot;enableAutoStop&quot;: True or False, # This setting indicates whether auto stop is enabled for this broadcast. The default value for this property is false. This setting can only be used by Events.
862 &quot;startWithSlate&quot;: True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast&#x27;s status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint&#x27;s eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
863 &quot;recordFromStart&quot;: True or False, # Automatically start recording after the event goes live. The default value for this property is true. *Important:* You must also set the enableDvr property&#x27;s value to true if you want the playback to be available immediately after the broadcast ends. If you set this property&#x27;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.
864 &quot;enableEmbed&quot;: 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700865 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700866 &quot;snippet&quot;: { # Basic broadcast information. # The snippet object contains basic details about the event, including its title, description, start time, and end time.
867 &quot;liveChatId&quot;: &quot;A String&quot;, # The id of the live chat for this broadcast.
868 &quot;description&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
869 &quot;actualStartTime&quot;: &quot;A String&quot;, # The date and time that the broadcast actually started. This information is only available once the broadcast&#x27;s state is live. The value is specified in ISO 8601 format.
870 &quot;actualEndTime&quot;: &quot;A String&quot;, # The date and time that the broadcast actually ended. This information is only available once the broadcast&#x27;s state is complete. The value is specified in ISO 8601 format.
871 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the broadcast was added to YouTube&#x27;s live broadcast schedule. The value is specified in ISO 8601 format.
872 &quot;thumbnails&quot;: { # 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.
873 &quot;default&quot;: { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
874 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
875 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
876 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
877 },
878 &quot;maxres&quot;: { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
879 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
880 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
881 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
882 },
883 &quot;medium&quot;: { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
884 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
885 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
886 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
887 },
888 &quot;standard&quot;: { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
889 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
890 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
891 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
892 },
893 &quot;high&quot;: { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
894 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
895 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
896 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
897 },
898 },
899 &quot;title&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
900 &quot;scheduledStartTime&quot;: &quot;A String&quot;, # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 format.
901 &quot;scheduledEndTime&quot;: &quot;A String&quot;, # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 format.
902 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
903 &quot;isDefaultBroadcast&quot;: True or False, # Indicates whether this broadcast is the default broadcast. Internal only.
904 },
905 &quot;status&quot;: { # Live broadcast state. # The status object contains information about the event&#x27;s status.
906 &quot;madeForKids&quot;: True or False, # Whether the broadcast is made for kids or not, decided by YouTube instead of the creator. This field is read only.
907 &quot;selfDeclaredMadeForKids&quot;: True or False, # This field will be set to True if the creator declares the broadcast to be kids only: go/live-cw-work.
908 &quot;privacyStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;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.
909 &quot;lifeCycleStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;s status. The status can be updated using the API&#x27;s liveBroadcasts.transition method.
910 &quot;recordingStatus&quot;: &quot;A String&quot;, # The broadcast&#x27;s recording status.
911 &quot;liveBroadcastPriority&quot;: &quot;A String&quot;, # Priority of the live broadcast event (internal state).
912 },
913 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
914 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400915</div>
916
917</body></html>