# Live Stream V1 API - Class Google::Cloud::Video::LiveStream::V1::MuxStream (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::MuxStream.

Multiplexing settings for output stream.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #container

    def container() -> ::String

**Returns**

- (::String) --- The container format. The default is `fmp4`.

  Supported container formats:
  - `fmp4` - the corresponding file extension is `.m4s`
  - `ts` - the corresponding file extension is `.ts`

### #container=

    def container=(value) -> ::String

**Parameter**

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

  The container format. The default is `fmp4`.

  Supported container formats:
  - `fmp4` - the corresponding file extension is `.m4s`
  - `ts` - the corresponding file extension is `.ts`
**Returns**

- (::String) --- The container format. The default is `fmp4`.

  Supported container formats:
  - `fmp4` - the corresponding file extension is `.m4s`
  - `ts` - the corresponding file extension is `.ts`

### #elementary_streams

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

**Returns**

- (::Array\<::String\>) --- List of `ElementaryStream`
  [key](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-ElementaryStream#Google__Cloud__Video__LiveStream__V1__ElementaryStream_key_instance_ "Google::Cloud::Video::LiveStream::V1::ElementaryStream#key (method)")s multiplexed
  in this stream.

  - For `fmp4` container, must contain either one video or one audio stream.
  - For `ts` container, must contain exactly one audio stream and up to one video stream.

### #elementary_streams=

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

**Parameter**

- **value** (::Array\<::String\>) ---

  List of `ElementaryStream`
  [key](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-ElementaryStream#Google__Cloud__Video__LiveStream__V1__ElementaryStream_key_instance_ "Google::Cloud::Video::LiveStream::V1::ElementaryStream#key (method)")s multiplexed
  in this stream.
  - For `fmp4` container, must contain either one video or one audio stream.
  - For `ts` container, must contain exactly one audio stream and up to one video stream.
**Returns**

- (::Array\<::String\>) --- List of `ElementaryStream`
  [key](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-ElementaryStream#Google__Cloud__Video__LiveStream__V1__ElementaryStream_key_instance_ "Google::Cloud::Video::LiveStream::V1::ElementaryStream#key (method)")s multiplexed
  in this stream.

  - For `fmp4` container, must contain either one video or one audio stream.
  - For `ts` container, must contain exactly one audio stream and up to one video stream.

### #encryption_id

    def encryption_id() -> ::String

**Returns**

- (::String) --- Identifier of the encryption configuration to use. If omitted, output will be unencrypted.

### #encryption_id=

    def encryption_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier of the encryption configuration to use. If omitted, output will be unencrypted.
**Returns**

- (::String) --- Identifier of the encryption configuration to use. If omitted, output will be unencrypted.

### #key

    def key() -> ::String

**Returns**

- (::String) --- A unique key for this multiplexed 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) --- A unique key for this multiplexed 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) --- A unique key for this multiplexed 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.

### #segment_settings

    def segment_settings() -> ::Google::Cloud::Video::LiveStream::V1::SegmentSettings

**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::SegmentSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-SegmentSettings)) --- Segment settings for `fmp4` and `ts`.

### #segment_settings=

    def segment_settings=(value) -> ::Google::Cloud::Video::LiveStream::V1::SegmentSettings

**Parameter**

- **value** ([::Google::Cloud::Video::LiveStream::V1::SegmentSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-SegmentSettings)) --- Segment settings for `fmp4` and `ts`.
**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::SegmentSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-SegmentSettings)) --- Segment settings for `fmp4` and `ts`.