true указывает, что дорожка является внутриполосной, а не загруженной не побочно. Актуально только для текстовых дорожек.
язык
(строка или неопределенное)
Языковой тег RFC 5646. Если подтип трека — SUBTITLES , это поле является обязательным .
имя
(строка или неопределенное)
Описательное, понятное для человека название трека, например, Spanish .
роли
(ненулевой массив строк или неопределенный)
Роль(и) трека. Распознаются следующие значения для каждого типа носителя с пояснениями значений, описанными в ISO/IEC 23009-1 и помеченными как «Ролевая схема DASH»:
trackContentId может быть URL-адресом дорожки или любым другим идентификатором, позволяющим получателю найти контент (если дорожка не является внутриполосной или не включена в манифест). Например, это может быть URL-адрес файла VTT.
Это представляет MIME-тип содержимого дорожки. Например, если дорожка представляет собой файл VTT, она будет иметь значение «text/vtt». Это поле необходимо для внеполосных дорожек, поэтому оно обычно предоставляется, если также указан trackContentId . Если у получателя есть способ идентифицировать контент по trackContentId , это поле рекомендуется, но не является обязательным. Тип контента трека, если он указан, должен соответствовать типу трека.
идентификатор трека
число
Уникальный идентификатор дорожки в контексте объекта MediaInformation .
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-07-24 UTC."],[[["\u003cp\u003e\u003ccode\u003ecast.framework.messages.Track\u003c/code\u003e provides metadata information for media tracks like audio, video, and text.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003etrackId\u003c/code\u003e, \u003ccode\u003etrackType\u003c/code\u003e, \u003ccode\u003elanguage\u003c/code\u003e, \u003ccode\u003ename\u003c/code\u003e, and custom data for describing the track.\u003c/p\u003e\n"],["\u003cp\u003eTracks can be identified as in-band or side-loaded using the \u003ccode\u003eisInband\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003etrackContentId\u003c/code\u003e and \u003ccode\u003etrackContentType\u003c/code\u003e can be used to specify external track resources if needed.\u003c/p\u003e\n"],["\u003cp\u003eAudio tracks have a dedicated \u003ccode\u003eaudioTrackInfo\u003c/code\u003e property for additional details.\u003c/p\u003e\n"]]],["The `Track` class describes metadata for media tracks, including `trackId` (unique identifier) and `trackType` ('TEXT', 'AUDIO', or 'VIDEO'). It supports properties like `language` (RFC 5646 tag, mandatory for subtitles), `name` (human-readable track name), `roles` (e.g., caption, dub), `subtype` (for text tracks), `trackContentId` (URL or identifier), and `trackContentType` (MIME type). `audioTrackInfo` is specific to audio tracks and `isInband` flag denotes if the track is in-band or not. `customData` allows for receiver-specific data.\n"],null,["cast.[framework](/cast/docs/reference/web_receiver/cast.framework).[messages](/cast/docs/reference/web_receiver/cast.framework.messages).Track \nclass static\n\nDescribes track metadata information.\n\nConstructor\n\nTrack\n\nnew\nTrack(trackId, trackType)\n\n| Parameter ||\n|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| trackId | number The unique identifier for the track. |\n| trackType | [cast.framework.messages.TrackType](/cast/docs/reference/web_receiver/cast.framework.messages#.TrackType) The type of track. Value must not be null. |\n\nProperties\n\naudioTrackInfo\n\n(non-null [cast.framework.messages.AudioTrackInfo](/cast/docs/reference/web_receiver/cast.framework.messages.AudioTrackInfo) or undefined)\n\nAudio-specific information about the track.\nDefined only for `Track#type === 'AUDIO'` tracks.\n\ncustomData\n\n(non-null Object or undefined)\n\nCustom data set by the receiver application.\n\nisInband\n\n(boolean or undefined)\n\n`true` indicates that the track is in-band and not a side-loaded track.\nRelevant only for text tracks.\n\nlanguage\n\n(string or undefined)\n\nAn RFC 5646 language tag. If the track subtype is `SUBTITLES`, this\nfield is **mandatory**.\n\nname\n\n(string or undefined)\n\nA descriptive, human-readable name for the track, for example, `Spanish`.\n\nroles\n\n(non-null Array of string or undefined)\n\nThe role(s) of the track. The following values for each media type are\nrecognized, with value explanations described in ISO/IEC 23009-1, labeled\n\"DASH role scheme\":\n\n- VIDEO: caption, subtitle, main, alternate, supplementary, sign, emergency\n- AUDIO: main, alternate, supplementary, commentary, dub, emergency\n- TEXT: main, alternate, subtitle, supplementary, commentary, dub, description, forced_subtitle\n\nsubtype\n\n(string or undefined)\n\nFor text tracks, the type of the text track.\n\ntrackContentId\n\n(string or undefined)\n\nThe `trackContentId` can be the URL of the track or any other identifier\nthat allows the receiver to find the content (when the track is not\nin-band or is not included in the manifest). For example, this can be the\nURL of a VTT file.\n\ntrackContentType\n\n(string, non-null [cast.framework.messages.CaptionMimeType](/cast/docs/reference/web_receiver/cast.framework.messages#.CaptionMimeType), or undefined)\n\nThis represents the MIME type of the track content. For example, if the\ntrack is a VTT file, this will have the value 'text/vtt'. This field is\nneeded for out-of-band tracks, so it is usually provided if a\n`trackContentId` has also been provided. If the receiver has a way to\nidentify the content from the `trackContentId`, this field is recommended\nbut is *not* mandatory. The track content type, if provided, must be\nconsistent with the track type.\n\ntrackId\n\nnumber\n\nThe unique identifier of the track within the context of a\n`MediaInformation` object.\n\ntype\n\nnon-null [cast.framework.messages.TrackType](/cast/docs/reference/web_receiver/cast.framework.messages#.TrackType)\n\nThe type of track ('TEXT', 'AUDIO', or 'VIDEO')."]]