Modifier and Type | Class and Description |
---|---|
class |
YouTube.LiveBroadcasts.Bind |
class |
YouTube.LiveBroadcasts.Delete |
class |
YouTube.LiveBroadcasts.Insert |
class |
YouTube.LiveBroadcasts.List |
class |
YouTube.LiveBroadcasts.Transition |
class |
YouTube.LiveBroadcasts.Update |
Constructor and Description |
---|
LiveBroadcasts() |
Modifier and Type | Method and Description |
---|---|
YouTube.LiveBroadcasts.Bind |
bind(String id,
List<String> part)
Bind a broadcast to a stream.
|
YouTube.LiveBroadcasts.Delete |
delete(String id)
Delete a given broadcast.
|
YouTube.LiveBroadcasts.Insert |
insert(List<String> part,
LiveBroadcast content)
Inserts a new stream for the authenticated user.
|
YouTube.LiveBroadcasts.List |
list(List<String> part)
Retrieve the list of broadcasts associated with the given channel.
|
YouTube.LiveBroadcasts.Transition |
transition(String broadcastStatus,
String id,
List<String> part)
Transition a broadcast to a given status.
|
YouTube.LiveBroadcasts.Update |
update(List<String> part,
LiveBroadcast content)
Updates an existing broadcast for the authenticated user.
|
public YouTube.LiveBroadcasts.Bind bind(String id, List<String> part) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.id
- Broadcast to bind to the streampart
- 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.IOException
public YouTube.LiveBroadcasts.Delete delete(String id) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.id
- Broadcast to delete.IOException
public YouTube.LiveBroadcasts.Insert insert(List<String> part, LiveBroadcast content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.part
- 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.content
- the LiveBroadcast
IOException
public YouTube.LiveBroadcasts.List list(List<String> part) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.part
- 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.IOException
public YouTube.LiveBroadcasts.Transition transition(String broadcastStatus, String id, List<String> part) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.broadcastStatus
- The status to which the broadcast is going to transition.id
- Broadcast to transition.part
- 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.IOException
public YouTube.LiveBroadcasts.Update update(List<String> part, LiveBroadcast content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.part
- 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's privacy status is defined in the status part. As
such, if your request is updating a private or unlisted broadcast, and the request's part
parameter value includes the status part, the broadcast's privacy setting will be updated
to whatever value the request body specifies. If the request body does not specify a
value, the existing privacy setting will be removed and the broadcast will revert to the
default privacy setting.content
- the LiveBroadcast
IOException
Copyright © 2011–2021 Google. All rights reserved.