Show / Hide Table of Contents

Class LiveStreamsResource

The "liveStreams" collection of methods.

Inheritance
System.Object
LiveStreamsResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.YouTube.v3
Assembly: Google.Apis.YouTube.v3.dll
Syntax
public class LiveStreamsResource

Constructors

LiveStreamsResource(IClientService)

Constructs a new resource.

Declaration
public LiveStreamsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Delete(String)

Deletes a video stream.

Declaration
public virtual LiveStreamsResource.DeleteRequest Delete(string id)
Parameters
Type Name Description
System.String id

The id parameter specifies the YouTube live stream ID for the resource that is being deleted.

Returns
Type Description
LiveStreamsResource.DeleteRequest

Insert(LiveStream, String)

Creates a video stream. The stream enables you to send your video to YouTube, which can then broadcast the video to your audience.

Declaration
public virtual LiveStreamsResource.InsertRequest Insert(LiveStream body, string part)
Parameters
Type Name Description
LiveStream body

The body of the request.

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, cdn, and status.

Returns
Type Description
LiveStreamsResource.InsertRequest

List(String)

Returns a list of video streams that match the API request parameters.

Declaration
public virtual LiveStreamsResource.ListRequest List(string part)
Parameters
Type Name Description
System.String part

The part parameter specifies a comma-separated list of one or more liveStream resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, cdn, and status.

Returns
Type Description
LiveStreamsResource.ListRequest

Update(LiveStream, String)

Updates a video stream. If the properties that you want to change cannot be updated, then you need to create a new stream with the proper settings.

Declaration
public virtual LiveStreamsResource.UpdateRequest Update(LiveStream body, string part)
Parameters
Type Name Description
LiveStream body

The body of the request.

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, cdn, 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. If the request body does not specify a value for a mutable property, the existing value for that property will be removed.

Returns
Type Description
LiveStreamsResource.UpdateRequest
Back to top