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

Reference documentation and code samples for the Google Cloud Video Live Stream V1 Client class AudioFormat.

Properties of the audio format.

Generated from protobuf message google.cloud.video.livestream.v1.AudioFormat

Namespace

Google \ Cloud \ Video \ LiveStream \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ codec string

Audio codec used in this audio stream.

↳ channel_count int

The number of audio channels.

↳ channel_layout array

A list of channel names specifying the layout of the audio channels.

getCodec

Audio codec used in this audio stream.

Returns
TypeDescription
string

setCodec

Audio codec used in this audio stream.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getChannelCount

The number of audio channels.

Returns
TypeDescription
int

setChannelCount

The number of audio channels.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getChannelLayout

A list of channel names specifying the layout of the audio channels.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setChannelLayout

A list of channel names specifying the layout of the audio channels.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this