Class LiveBroadcastsResource
The "liveBroadcasts" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.YouTube.v3
Assembly: Google.Apis.YouTube.v3.dll
Syntax
public class LiveBroadcastsResource
Constructors
LiveBroadcastsResource(IClientService)
Constructs a new resource.
Declaration
public LiveBroadcastsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Bind(String, Repeatable<String>)
Bind a broadcast to a stream.
Declaration
public virtual LiveBroadcastsResource.BindRequest Bind(string id, Repeatable<string> part)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | Broadcast to bind to the stream |
| Repeatable<System.String> | 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. |
Returns
| Type | Description |
|---|---|
| LiveBroadcastsResource.BindRequest |
Control(String, Repeatable<String>)
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
Declaration
public virtual LiveBroadcastsResource.ControlRequest Control(string id, Repeatable<string> part)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | Broadcast to operate. |
| Repeatable<System.String> | 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. |
Returns
| Type | Description |
|---|---|
| LiveBroadcastsResource.ControlRequest |
Delete(String)
Delete a given broadcast.
Declaration
public virtual LiveBroadcastsResource.DeleteRequest Delete(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | Broadcast to delete. |
Returns
| Type | Description |
|---|---|
| LiveBroadcastsResource.DeleteRequest |
Insert(LiveBroadcast, Repeatable<String>)
Inserts a new stream for the authenticated user.
Declaration
public virtual LiveBroadcastsResource.InsertRequest Insert(LiveBroadcast body, Repeatable<string> part)
Parameters
| Type | Name | Description |
|---|---|---|
| LiveBroadcast | body | The body of the request. |
| Repeatable<System.String> | 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. |
Returns
| Type | Description |
|---|---|
| LiveBroadcastsResource.InsertRequest |
List(Repeatable<String>)
Retrieve the list of broadcasts associated with the given channel.
Declaration
public virtual LiveBroadcastsResource.ListRequest List(Repeatable<string> part)
Parameters
| Type | Name | Description |
|---|---|---|
| Repeatable<System.String> | 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. |
Returns
| Type | Description |
|---|---|
| LiveBroadcastsResource.ListRequest |
Transition(String, LiveBroadcastsResource.TransitionRequest.BroadcastStatusEnum, Repeatable<String>)
Transition a broadcast to a given status.
Declaration
public virtual LiveBroadcastsResource.TransitionRequest Transition(string id, LiveBroadcastsResource.TransitionRequest.BroadcastStatusEnum broadcastStatus, Repeatable<string> part)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | Broadcast to transition. |
| LiveBroadcastsResource.TransitionRequest.BroadcastStatusEnum | broadcastStatus | The status to which the broadcast is going to transition. |
| Repeatable<System.String> | 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. |
Returns
| Type | Description |
|---|---|
| LiveBroadcastsResource.TransitionRequest |
Update(LiveBroadcast, Repeatable<String>)
Updates an existing broadcast for the authenticated user.
Declaration
public virtual LiveBroadcastsResource.UpdateRequest Update(LiveBroadcast body, Repeatable<string> part)
Parameters
| Type | Name | Description |
|---|---|---|
| LiveBroadcast | body | The body of the request. |
| Repeatable<System.String> | 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. |
Returns
| Type | Description |
|---|---|
| LiveBroadcastsResource.UpdateRequest |