[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Video Transcoder V1 Client - Class TextStream (1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/php/docs/reference/cloud-video-transcoder/latest/V1.TextStream)\n- [1.0.3](/php/docs/reference/cloud-video-transcoder/1.0.3/V1.TextStream)\n- [0.10.5](/php/docs/reference/cloud-video-transcoder/0.10.5/V1.TextStream)\n- [0.9.1](/php/docs/reference/cloud-video-transcoder/0.9.1/V1.TextStream)\n- [0.8.2](/php/docs/reference/cloud-video-transcoder/0.8.2/V1.TextStream)\n- [0.7.1](/php/docs/reference/cloud-video-transcoder/0.7.1/V1.TextStream)\n- [0.6.0](/php/docs/reference/cloud-video-transcoder/0.6.0/V1.TextStream)\n- [0.5.3](/php/docs/reference/cloud-video-transcoder/0.5.3/V1.TextStream) \nReference documentation and code samples for the Google Cloud Video Transcoder V1 Client class TextStream.\n\nEncoding of a text stream. For example, closed captions or subtitles.\n\nGenerated from protobuf message `google.cloud.video.transcoder.v1.TextStream`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Video \\\\ Transcoder \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCodec\n\nThe codec for this text stream. The default is `webvtt`.\n\nSupported text codecs:\n\n- `srt`\n- `ttml`\n- `cea608`\n- `cea708`\n- `webvtt`\n\n### setCodec\n\nThe codec for this text stream. The default is `webvtt`.\n\nSupported text codecs:\n\n- `srt`\n- `ttml`\n- `cea608`\n- `cea708`\n- `webvtt`\n\n### getLanguageCode\n\nThe BCP-47 language code, such as `en-US` or `sr-Latn`. For more\ninformation, see\n\u003chttps://www.unicode.org/reports/tr35/#Unicode_locale_identifier\u003e. Not\nsupported in MP4 files.\n\n### setLanguageCode\n\nThe BCP-47 language code, such as `en-US` or `sr-Latn`. For more\ninformation, see\n\u003chttps://www.unicode.org/reports/tr35/#Unicode_locale_identifier\u003e. Not\nsupported in MP4 files.\n\n### getMapping\n\nThe mapping for the\n[JobConfig.edit_list](/php/docs/reference/cloud-video-transcoder/latest/V1.JobConfig#_Google_Cloud_Video_Transcoder_V1_JobConfig__getEditList__)\natoms with text\n[EditAtom.inputs](/php/docs/reference/cloud-video-transcoder/latest/V1.EditAtom#_Google_Cloud_Video_Transcoder_V1_EditAtom__getInputs__).\n\n### setMapping\n\nThe mapping for the\n[JobConfig.edit_list](/php/docs/reference/cloud-video-transcoder/latest/V1.JobConfig#_Google_Cloud_Video_Transcoder_V1_JobConfig__getEditList__)\natoms with text\n[EditAtom.inputs](/php/docs/reference/cloud-video-transcoder/latest/V1.EditAtom#_Google_Cloud_Video_Transcoder_V1_EditAtom__getInputs__).\n\n### getDisplayName\n\nThe name for this particular text stream that\nwill be added to the HLS/DASH manifest. Not supported in MP4 files.\n\n### setDisplayName\n\nThe name for this particular text stream that\nwill be added to the HLS/DASH manifest. Not supported in MP4 files."]]