Reference documentation and code samples for the Google Cloud Video Live Stream V1 Client class MuxStream.
Multiplexing settings for output stream.
Generated from protobuf message google.cloud.video.livestream.v1.MuxStream
Namespace
Google \ Cloud \ Video \ LiveStream \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ key
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.
↳ container
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
array
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.
Identifier of the encryption configuration to use. If omitted, output will be unencrypted.
getKey
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
Type
Description
string
setKey
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.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getContainer
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
Type
Description
string
setContainer
The container format. The default is fmp4.
Supported container formats:
fmp4 - the corresponding file extension is .m4s
ts - the corresponding file extension is .ts
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getElementaryStreams
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Google Cloud Video Live Stream V1 Client - Class MuxStream (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-video-live-stream/latest/V1.MuxStream)\n- [1.2.0](/php/docs/reference/cloud-video-live-stream/1.2.0/V1.MuxStream)\n- [1.1.3](/php/docs/reference/cloud-video-live-stream/1.1.3/V1.MuxStream)\n- [1.0.0](/php/docs/reference/cloud-video-live-stream/1.0.0/V1.MuxStream)\n- [0.7.5](/php/docs/reference/cloud-video-live-stream/0.7.5/V1.MuxStream)\n- [0.6.2](/php/docs/reference/cloud-video-live-stream/0.6.2/V1.MuxStream)\n- [0.5.0](/php/docs/reference/cloud-video-live-stream/0.5.0/V1.MuxStream)\n- [0.4.2](/php/docs/reference/cloud-video-live-stream/0.4.2/V1.MuxStream)\n- [0.3.2](/php/docs/reference/cloud-video-live-stream/0.3.2/V1.MuxStream)\n- [0.2.6](/php/docs/reference/cloud-video-live-stream/0.2.6/V1.MuxStream) \nReference documentation and code samples for the Google Cloud Video Live Stream V1 Client class MuxStream.\n\nMultiplexing settings for output stream.\n\nGenerated from protobuf message `google.cloud.video.livestream.v1.MuxStream`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Video \\\\ LiveStream \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getKey\n\nA unique key for this multiplexed stream. The key must be 1-63\ncharacters in length. The key must begin and end with a letter (regardless\nof case) or a number, but can contain dashes or underscores in between.\n\n### setKey\n\nA unique key for this multiplexed stream. The key must be 1-63\ncharacters in length. The key must begin and end with a letter (regardless\nof case) or a number, but can contain dashes or underscores in between.\n\n### getContainer\n\nThe container format. The default is `fmp4`.\n\nSupported container formats:\n\n- `fmp4` - the corresponding file extension is `.m4s`\n- `ts` - the corresponding file extension is `.ts`\n\n### setContainer\n\nThe container format. The default is `fmp4`.\n\nSupported container formats:\n\n- `fmp4` - the corresponding file extension is `.m4s`\n- `ts` - the corresponding file extension is `.ts`\n\n### getElementaryStreams\n\nList of `ElementaryStream`\n[key](/php/docs/reference/cloud-video-live-stream/latest/V1.ElementaryStream#_Google_Cloud_Video_LiveStream_V1_ElementaryStream__getKey__)s multiplexed\nin 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### setElementaryStreams\n\nList of `ElementaryStream`\n[key](/php/docs/reference/cloud-video-live-stream/latest/V1.ElementaryStream#_Google_Cloud_Video_LiveStream_V1_ElementaryStream__getKey__)s multiplexed\nin 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### getSegmentSettings\n\nSegment settings for `fmp4` and `ts`.\n\n### hasSegmentSettings\n\n### clearSegmentSettings\n\n### setSegmentSettings\n\nSegment settings for `fmp4` and `ts`.\n\n### getEncryptionId\n\nIdentifier of the encryption configuration to use. If omitted, output\nwill be unencrypted.\n\n### setEncryptionId\n\nIdentifier of the encryption configuration to use. If omitted, output\nwill be unencrypted."]]