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 \ V1Methods
__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 |
↳ elementary_streams |
array
List of |
↳ segment_settings |
Google\Cloud\Video\LiveStream\V1\SegmentSettings
Segment settings for |
↳ encryption_id |
string
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 ElementaryStream
keys 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 | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setElementaryStreams
List of ElementaryStream
keys 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.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |
getSegmentSettings
Segment settings for fmp4
and ts
.
Returns | |
---|---|
Type | Description |
Google\Cloud\Video\LiveStream\V1\SegmentSettings|null |
hasSegmentSettings
clearSegmentSettings
setSegmentSettings
Segment settings for fmp4
and ts
.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Video\LiveStream\V1\SegmentSettings
|
Returns | |
---|---|
Type | Description |
$this |
getEncryptionId
Identifier of the encryption configuration to use. If omitted, output will be unencrypted.
Returns | |
---|---|
Type | Description |
string |
setEncryptionId
Identifier of the encryption configuration to use. If omitted, output will be unencrypted.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |