Reference documentation and code samples for the Google Cloud Video Live Stream V1 Client class ElementaryStream.
Encoding of an input element such as an audio, video, or text track.
Elementary streams must be packaged before mapping and sharing between different output formats.
Generated from protobuf message google.cloud.video.livestream.v1.ElementaryStream
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 elementary stream. |
↳ video_stream |
Google\Cloud\Video\LiveStream\V1\VideoStream
Encoding of a video stream. |
↳ audio_stream |
Google\Cloud\Video\LiveStream\V1\AudioStream
Encoding of an audio stream. |
↳ text_stream |
Google\Cloud\Video\LiveStream\V1\TextStream
Encoding of a text stream. For example, closed captions or subtitles. |
getKey
A unique key for this elementary stream.
Returns | |
---|---|
Type | Description |
string |
setKey
A unique key for this elementary stream.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getVideoStream
Encoding of a video stream.
Returns | |
---|---|
Type | Description |
Google\Cloud\Video\LiveStream\V1\VideoStream|null |
hasVideoStream
setVideoStream
Encoding of a video stream.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Video\LiveStream\V1\VideoStream
|
Returns | |
---|---|
Type | Description |
$this |
getAudioStream
Encoding of an audio stream.
Returns | |
---|---|
Type | Description |
Google\Cloud\Video\LiveStream\V1\AudioStream|null |
hasAudioStream
setAudioStream
Encoding of an audio stream.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Video\LiveStream\V1\AudioStream
|
Returns | |
---|---|
Type | Description |
$this |
getTextStream
Encoding of a text stream. For example, closed captions or subtitles.
Returns | |
---|---|
Type | Description |
Google\Cloud\Video\LiveStream\V1\TextStream|null |
hasTextStream
setTextStream
Encoding of a text stream. For example, closed captions or subtitles.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Video\LiveStream\V1\TextStream
|
Returns | |
---|---|
Type | Description |
$this |
getElementaryStream
Returns | |
---|---|
Type | Description |
string |