All Live Stream API code samples

This page contains code samples for Live Stream API. To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.

Create a channel

Create a channel that ingests the input stream through an input endpoint, transcodes the input stream into multiple renditions, and publishes output live streams in certain formats in the specified location.

Create a channel event

Create a channel event to execute an operation on a channel resource without needing to stop the channel. For example, you can use a channel event to create ad break markers.

Create a channel with a backup input

Create a channel with two input streams, where one input stream is the backup for the other input stream. If the primary input stream is disconnected due to network issues, the channel automatically switches to use the backup input stream as the input source. Once the primary input stream is back online, the channel automatically switches back to the primary input stream as the input source.

Create an input endpoint

Create an endpoint to which your encoder sends your input stream. You can use the input endpoint to specify configurations for your stream, such as input resolution, input type, and video cropping.

Get a channel event

Get details for a live stream channel event resource.

View in documentation

Get an input endpoint

Get details for a live stream input endpoint resource.

View in documentation

List channel events

List all channel events for a live stream channel resource.

View in documentation

List channels

List all live stream channel resources for a location.

View in documentation

List input endpoints

List all live stream input endpoint resources for a location.

View in documentation

Update a channel

Update a live stream channel resource.

View in documentation

Update an input endpoint

Update a live stream input endpoint resource.

View in documentation