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
defcontainer()->::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=
defcontainer=(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
defelementary_streams()->::Array<::String>
Returns
(::Array<::String>) —
List of ElementaryStreamkeys 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=
defelementary_streams=(value)->::Array<::String>
Parameter
value (::Array<::String>) —
List of ElementaryStreamkeys 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 ElementaryStreamkeys 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
defencryption_id()->::String
Returns
(::String) — Identifier of the encryption configuration to use. If omitted, output
will be unencrypted.
#encryption_id=
defencryption_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
defkey()->::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=
defkey=(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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Live Stream V1 API - Class Google::Cloud::Video::LiveStream::V1::MuxStream (v2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-MuxStream)\n- [2.1.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/2.1.0/Google-Cloud-Video-LiveStream-V1-MuxStream)\n- [2.0.1](/ruby/docs/reference/google-cloud-video-live_stream-v1/2.0.1/Google-Cloud-Video-LiveStream-V1-MuxStream)\n- [1.3.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/1.3.0/Google-Cloud-Video-LiveStream-V1-MuxStream)\n- [1.2.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/1.2.0/Google-Cloud-Video-LiveStream-V1-MuxStream)\n- [1.1.1](/ruby/docs/reference/google-cloud-video-live_stream-v1/1.1.1/Google-Cloud-Video-LiveStream-V1-MuxStream)\n- [1.0.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/1.0.0/Google-Cloud-Video-LiveStream-V1-MuxStream)\n- [0.9.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.9.0/Google-Cloud-Video-LiveStream-V1-MuxStream)\n- [0.8.2](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.8.2/Google-Cloud-Video-LiveStream-V1-MuxStream)\n- [0.7.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.7.0/Google-Cloud-Video-LiveStream-V1-MuxStream)\n- [0.6.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.6.0/Google-Cloud-Video-LiveStream-V1-MuxStream)\n- [0.5.1](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.5.1/Google-Cloud-Video-LiveStream-V1-MuxStream)\n- [0.4.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.4.0/Google-Cloud-Video-LiveStream-V1-MuxStream)\n- [0.3.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.3.0/Google-Cloud-Video-LiveStream-V1-MuxStream)\n- [0.2.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.2.0/Google-Cloud-Video-LiveStream-V1-MuxStream)\n- [0.1.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.1.0/Google-Cloud-Video-LiveStream-V1-MuxStream) \nReference documentation and code samples for the Live Stream V1 API class Google::Cloud::Video::LiveStream::V1::MuxStream.\n\nMultiplexing settings for output stream. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #container\n\n def container() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The container format. The default is `fmp4`.\n\n Supported container formats:\n - `fmp4` - the corresponding file extension is `.m4s`\n - `ts` - the corresponding file extension is `.ts`\n\n### #container=\n\n def container=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) ---\n\n The container format. The default is `fmp4`.\n\n Supported container formats:\n - `fmp4` - the corresponding file extension is `.m4s`\n- `ts` - the corresponding file extension is `.ts` \n**Returns**\n\n- (::String) --- The container format. The default is `fmp4`.\n\n Supported container formats:\n - `fmp4` - the corresponding file extension is `.m4s`\n - `ts` - the corresponding file extension is `.ts`\n\n### #elementary_streams\n\n def elementary_streams() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- List of `ElementaryStream`\n [key](/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\n in this stream.\n\n - For `fmp4` container, must contain either one video or one audio stream.\n - For `ts` container, must contain exactly one audio stream and up to one video stream.\n\n### #elementary_streams=\n\n def elementary_streams=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) ---\n\n List of `ElementaryStream`\n [key](/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\n in this stream.\n - For `fmp4` container, must contain either one video or one audio stream.\n- For `ts` container, must contain exactly one audio stream and up to one video stream. \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- List of `ElementaryStream`\n [key](/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\n in this stream.\n\n - For `fmp4` container, must contain either one video or one audio stream.\n - For `ts` container, must contain exactly one audio stream and up to one video stream.\n\n### #encryption_id\n\n def encryption_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Identifier of the encryption configuration to use. If omitted, output will be unencrypted.\n\n### #encryption_id=\n\n def encryption_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Identifier of the encryption configuration to use. If omitted, output will be unencrypted. \n**Returns**\n\n- (::String) --- Identifier of the encryption configuration to use. If omitted, output will be unencrypted.\n\n### #key\n\n def key() -\u003e ::String\n\n**Returns**\n\n- (::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.\n\n### #key=\n\n def key=(value) -\u003e ::String\n\n**Parameter**\n\n- **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. \n**Returns**\n\n- (::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.\n\n### #segment_settings\n\n def segment_settings() -\u003e ::Google::Cloud::Video::LiveStream::V1::SegmentSettings\n\n**Returns**\n\n- ([::Google::Cloud::Video::LiveStream::V1::SegmentSettings](./Google-Cloud-Video-LiveStream-V1-SegmentSettings)) --- Segment settings for `fmp4` and `ts`.\n\n### #segment_settings=\n\n def segment_settings=(value) -\u003e ::Google::Cloud::Video::LiveStream::V1::SegmentSettings\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Video::LiveStream::V1::SegmentSettings](./Google-Cloud-Video-LiveStream-V1-SegmentSettings)) --- Segment settings for `fmp4` and `ts`. \n**Returns**\n\n- ([::Google::Cloud::Video::LiveStream::V1::SegmentSettings](./Google-Cloud-Video-LiveStream-V1-SegmentSettings)) --- Segment settings for `fmp4` and `ts`."]]