# Live Stream V1 API - Class Google::Cloud::Video::LiveStream::V1::DistributionStream (v2.7.0)

2.7.0 (latest) 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.3.0 1.2.0 1.1.1 1.0.0 0.9.0 0.8.2 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Live Stream V1 API class Google::Cloud::Video::LiveStream::V1::DistributionStream.

Multiplexing settings for output streams used in
[Distribution](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Distribution "Google::Cloud::Video::LiveStream::V1::Distribution (class)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #container

    def container() -> ::String

**Returns**

- (::String) --- Required. The container format.

  Supported container formats:
  - `ts`, must contain exactly one audio stream and up to one video stream.
  - `flv`, must contain at most one audio stream and at most one video stream.

### #container=

    def container=(value) -> ::String

**Parameter**

- **value** (::String) ---

  Required. The container format.

  Supported container formats:
  - `ts`, must contain exactly one audio stream and up to one video stream.
  - `flv`, must contain at most one audio stream and at most one video stream.
**Returns**

- (::String) --- Required. The container format.

  Supported container formats:
  - `ts`, must contain exactly one audio stream and up to one video stream.
  - `flv`, must contain at most one audio stream and at most one video stream.

### #elementary_streams

    def elementary_streams() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Required. List of `ElementaryStream` {::Google::Cloud::Video::LiveStream::V1::ElementaryStream#key key}s multiplexed in this stream. Must contain at least one audio stream and up to one video stream.

### #elementary_streams=

    def elementary_streams=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Required. List of `ElementaryStream` {::Google::Cloud::Video::LiveStream::V1::ElementaryStream#key key}s multiplexed in this stream. Must contain at least one audio stream and up to one video stream.
**Returns**

- (::Array\<::String\>) --- Required. List of `ElementaryStream` {::Google::Cloud::Video::LiveStream::V1::ElementaryStream#key key}s multiplexed in this stream. Must contain at least one audio stream and up to one video stream.

### #key

    def key() -> ::String

**Returns**

- (::String) --- Required. A unique key for this distribution stream. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.

### #key=

    def key=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. A unique key for this distribution stream. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.
**Returns**

- (::String) --- Required. A unique key for this distribution stream. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.