class LiveStreams extends Resource (View source)

The "liveStreams" collection of methods.

Typical usage is:

 $youtubeService = new Google\Service\YouTube(...);
 $liveStreams = $youtubeService->liveStreams;

Methods

delete(string $id, array $optParams = [])

Deletes an existing stream for the authenticated user. (liveStreams.delete)

insert(string|array $part, LiveStream $postBody, array $optParams = [])

Inserts a new stream for the authenticated user. (liveStreams.insert)

listLiveStreams(string|array $part, array $optParams = [])

Retrieve the list of streams associated with the given channel. -- (liveStreams.listLiveStreams)

update(string|array $part, LiveStream $postBody, array $optParams = [])

Updates an existing stream for the authenticated user. (liveStreams.update)

Details

delete(string $id, array $optParams = [])

Deletes an existing stream for the authenticated user. (liveStreams.delete)

Parameters

string $id
array $optParams

Optional parameters.

Exceptions

Exception

LiveStream insert(string|array $part, LiveStream $postBody, array $optParams = [])

Inserts a new stream for the authenticated user. (liveStreams.insert)

Parameters

string|array $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, content_details, and status.

LiveStream $postBody
array $optParams

Optional parameters.

Return Value

LiveStream

Exceptions

Exception

LiveStreamListResponse listLiveStreams(string|array $part, array $optParams = [])

Retrieve the list of streams associated with the given channel. -- (liveStreams.listLiveStreams)

Parameters

string|array $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.

array $optParams

Optional parameters.

Return Value

LiveStreamListResponse

Exceptions

Exception

LiveStream update(string|array $part, LiveStream $postBody, array $optParams = [])

Updates an existing stream for the authenticated user. (liveStreams.update)

Parameters

string|array $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.

LiveStream $postBody
array $optParams

Optional parameters.

Return Value

LiveStream

Exceptions

Exception