Google Cloud Video Live Stream V1 Client - Class MuxStream (0.4.2)

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
NameDescription
data array

Optional. Data for populating the Message object.

↳ key string

A unique key for this multiplexed stream.

↳ 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 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.

↳ segment_settings Google\Cloud\Video\LiveStream\V1\SegmentSettings

Segment settings for fmp4 and ts.

↳ encryption_id string

Identifier of the encryption configuration to use. If omitted, output will be unencrypted.

getKey

A unique key for this multiplexed stream.

Returns
TypeDescription
string

setKey

A unique key for this multiplexed stream.

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string[]
Returns
TypeDescription
$this

getSegmentSettings

Segment settings for fmp4 and ts.

Returns
TypeDescription
Google\Cloud\Video\LiveStream\V1\SegmentSettings|null

hasSegmentSettings

clearSegmentSettings

setSegmentSettings

Segment settings for fmp4 and ts.

Parameter
NameDescription
var Google\Cloud\Video\LiveStream\V1\SegmentSettings
Returns
TypeDescription
$this

getEncryptionId

Identifier of the encryption configuration to use. If omitted, output will be unencrypted.

Returns
TypeDescription
string

setEncryptionId

Identifier of the encryption configuration to use. If omitted, output will be unencrypted.

Parameter
NameDescription
var string
Returns
TypeDescription
$this