Google Cloud Video Transcoder V1beta1 Client - Class MuxStream (0.7.1)

Reference documentation and code samples for the Google Cloud Video Transcoder V1beta1 Client class MuxStream.

Multiplexing settings for output stream.

Generated from protobuf message google.cloud.video.transcoder.v1beta1.MuxStream

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ key string

A unique key for this multiplexed stream. HLS media manifests will be named MuxStream.key with the ".m3u8" extension suffix.

↳ file_name string

The name of the generated file. The default is MuxStream.key with the extension suffix corresponding to the MuxStream.container. Individual segments also have an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as "mux_stream0000000123.ts".

↳ container string

The container format. The default is "mp4" Supported container formats: - 'ts' - 'fmp4'- the corresponding file extension is ".m4s" - 'mp4' - 'vtt'

↳ elementary_streams string[]

List of ElementaryStream.keys multiplexed in this stream.

↳ segment_settings Google\Cloud\Video\Transcoder\V1beta1\SegmentSettings

Segment settings for "ts", "fmp4" and "vtt".

↳ encryption Google\Cloud\Video\Transcoder\V1beta1\Encryption

Encryption settings.

getKey

A unique key for this multiplexed stream. HLS media manifests will be named MuxStream.key with the ".m3u8" extension suffix.

Returns
TypeDescription
string

setKey

A unique key for this multiplexed stream. HLS media manifests will be named MuxStream.key with the ".m3u8" extension suffix.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFileName

The name of the generated file. The default is MuxStream.key with the extension suffix corresponding to the MuxStream.container.

Individual segments also have an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as "mux_stream0000000123.ts".

Returns
TypeDescription
string

setFileName

The name of the generated file. The default is MuxStream.key with the extension suffix corresponding to the MuxStream.container.

Individual segments also have an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as "mux_stream0000000123.ts".

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getContainer

The container format. The default is "mp4" Supported container formats:

  • 'ts'
  • 'fmp4'- the corresponding file extension is ".m4s"
  • 'mp4'
  • 'vtt'
Returns
TypeDescription
string

setContainer

The container format. The default is "mp4" Supported container formats:

  • 'ts'
  • 'fmp4'- the corresponding file extension is ".m4s"
  • 'mp4'
  • 'vtt'
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getElementaryStreams

List of ElementaryStream.keys multiplexed in this stream.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setElementaryStreams

List of ElementaryStream.keys multiplexed in this stream.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getSegmentSettings

Segment settings for "ts", "fmp4" and "vtt".

Returns
TypeDescription
Google\Cloud\Video\Transcoder\V1beta1\SegmentSettings|null

hasSegmentSettings

clearSegmentSettings

setSegmentSettings

Segment settings for "ts", "fmp4" and "vtt".

Parameter
NameDescription
var Google\Cloud\Video\Transcoder\V1beta1\SegmentSettings
Returns
TypeDescription
$this

getEncryption

Encryption settings.

Returns
TypeDescription
Google\Cloud\Video\Transcoder\V1beta1\Encryption|null

hasEncryption

clearEncryption

setEncryption

Encryption settings.

Parameter
NameDescription
var Google\Cloud\Video\Transcoder\V1beta1\Encryption
Returns
TypeDescription
$this