Class Channel (1.3.0)

Channel(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Channel resource represents the processor that does a user-defined "streaming" operation, which includes getting an input stream through an input, transcoding it to multiple renditions, and publishing output live streams in certain formats (for example, HLS or DASH) to the specified location.

Attributes

NameDescription
name str
The resource name of the channel, in the form of: projects/{project}/locations/{location}/channels/{channelId}.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. The creation time.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. The update time.
labels MutableMapping[str, str]
User-defined key/value metadata.
input_attachments MutableSequence[google.cloud.video.live_stream_v1.types.InputAttachment]
A list of input attachments that this channel uses. One channel can have multiple inputs as the input sources. Only one input can be selected as the input source at one time.
active_input str
Output only. The InputAttachment.key that serves as the current input source. The first input in the input_attachments is the initial input source.
output google.cloud.video.live_stream_v1.types.Channel.Output
Required. Information about the output (that is, the Cloud Storage bucket to store the generated live stream).
elementary_streams MutableSequence[google.cloud.video.live_stream_v1.types.ElementaryStream]
List of elementary streams.
mux_streams MutableSequence[google.cloud.video.live_stream_v1.types.MuxStream]
List of multiplexing settings for output streams.
manifests MutableSequence[google.cloud.video.live_stream_v1.types.Manifest]
List of output manifests.
sprite_sheets MutableSequence[google.cloud.video.live_stream_v1.types.SpriteSheet]
List of output sprite sheets.
streaming_state google.cloud.video.live_stream_v1.types.Channel.StreamingState
Output only. State of the streaming operation.
streaming_error google.rpc.status_pb2.Status
Output only. A description of the reason for the streaming error. This property is always present when streaming_state is STREAMING_ERROR.
log_config google.cloud.video.live_stream_v1.types.LogConfig
Configuration of platform logs for this channel.

Classes

LabelsEntry

LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

Output

Output(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Location of output file(s) in a Google Cloud Storage bucket.

StreamingState

StreamingState(value)

State of streaming operation that the channel is running.

Values: STREAMING_STATE_UNSPECIFIED (0): Streaming state is not specified. STREAMING (1): Channel is getting the input stream, generating the live streams to the specified output location. AWAITING_INPUT (2): Channel is waiting for the input stream through the input. STREAMING_ERROR (4): Channel is running, but has trouble publishing the live streams onto the specified output location (for example, the specified Cloud Storage bucket is not writable). STREAMING_NO_INPUT (5): Channel is generating live streams with no input stream. Live streams are filled out with black screen, while input stream is missing. Not supported yet. STOPPED (6): Channel is stopped, finishing live streams. STARTING (7): Channel is starting. STOPPING (8): Channel is stopping.