Reference documentation and code samples for the Google Cloud Video Live Stream V1 Client class TextStream.
Encoding of a text stream. For example, closed captions or subtitles.
Generated from protobuf message google.cloud.video.livestream.v1.TextStream
Namespace
Google \ Cloud \ Video \ LiveStream \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ codec
string
Required. The codec for this text stream. Supported text codecs: - cea608
- cea708
- webvtt
↳ language_code
string
Optional. The BCP-47 language code, such as en-US
or sr-Latn
. For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier
.
↳ display_name
string
Optional. The name for this particular text stream that will be added to the HLS/DASH manifest.
↳ output_cea_channel
↳ mapping
getCodec
Required. The codec for this text stream.
Supported text codecs:
-
cea608 -
cea708 -
webvtt
string
setCodec
Required. The codec for this text stream.
Supported text codecs:
-
cea608 -
cea708 -
webvtt
var
string
$this
getLanguageCode
Optional. The BCP-47 language code, such as en-US
or sr-Latn
. For more
information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier
.
string
setLanguageCode
Optional. The BCP-47 language code, such as en-US
or sr-Latn
. For more
information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier
.
var
string
$this
getDisplayName
Optional. The name for this particular text stream that will be added to the HLS/DASH manifest.
string
setDisplayName
Optional. The name for this particular text stream that will be added to the HLS/DASH manifest.
var
string
$this
getOutputCeaChannel
Optional. The channel of the closed caption in the output stream.
This field should only be set when textstream is used for partner
distribution.
Must be one of CC1
, CC2
, CC3
, and CC4
, if the codec
is cea608
;
Must be one between SERVICE1
and SERVICE63
, if the codec
is cea708
.
string
setOutputCeaChannel
Optional. The channel of the closed caption in the output stream.
This field should only be set when textstream is used for partner
distribution.
Must be one of CC1
, CC2
, CC3
, and CC4
, if the codec
is cea608
;
Must be one between SERVICE1
and SERVICE63
, if the codec
is cea708
.
var
string
$this
getMapping
Optional. The mapping for the input streams and text tracks.
setMapping
Optional. The mapping for the input streams and text tracks.
$this

