1.11.0 (latest) 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class TextStream : IMessage<TextStream>, IEquatable<TextStream>, IDeepCloneable<TextStream>, IBufferMessage, IMessage

Reference documentation and code samples for the Live Stream v1 API class TextStream.

Encoding of a text stream. For example, closed captions or subtitles.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> TextStream

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[TextStream](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.TextStream.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TextStream](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.TextStream.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[TextStream](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.TextStream.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Video.LiveStream.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.md.txt)

## Assembly

Google.Cloud.Video.LiveStream.V1.dll

## Constructors

### TextStream()

    public TextStream()

### TextStream(TextStream)

    public TextStream(TextStream other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `TextStream` |

## Properties

### Codec

    public string Codec { get; set; }

Required. The codec for this text stream.

Supported text codecs:

- `cea608`
- `cea708`
- `webvtt`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### DisplayName

    public string DisplayName { get; set; }

Optional. The name for this particular text stream that will be added to
the HLS/DASH manifest.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### LanguageCode

    public string LanguageCode { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Mapping

    public RepeatedField<TextStream.Types.TextMapping> Mapping { get; }

Optional. The mapping for the input streams and text tracks.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldTextStreamTypesTextMapping` |   |

### OutputCeaChannel

    public string OutputCeaChannel { get; set; }

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\]\[google.cloud.video.livestream.v1.TextStream.codec\] is `cea608`;
Must be one between `SERVICE1` and `SERVICE63`, if the
\[codec\]\[google.cloud.video.livestream.v1.TextStream.codec\] is `cea708`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |