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.
View in documentation
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.