टेक्स्ट ट्रैक की स्टाइल की जानकारी देता है.
रंग को “#RRGGBBAA” स्ट्रिंग के तौर पर दिखाया जाता है. यहां XX ऐसे दो हेक्साडेसिमल सिंबल होते हैं जो किसी खास चैनल/रंग के लिए, 0 से 255
वैल्यू दिखाते हैं. यह सीएसएस 8-अंकों के हेक्स कलर नोटेशन का पालन करता है.
(http://dev.w3.org/csswg/css-color/#hex-नोटेशन देखें).
निर्माता
TextTrackStyle
नया
TextTrackStyle()
प्रॉपर्टी
backgroundColor
शून्य जा सकने वाली स्ट्रिंग
बैकग्राउंड RGBA रंग, जिसे "#RRGGBBAA" के रूप में दिखाया जाता है.
ऐल्फ़ा चैनल का इस्तेमाल पारदर्शी बैकग्राउंड के लिए किया जाना चाहिए.
customData
शून्य जा सकने वाला ऑब्जेक्ट
कस्टम ऐप्लिकेशन डेटा.
edgeColor
शून्य जा सकने वाली स्ट्रिंग
किनारे के लिए RGBA रंग, जिसे "#RRGGBBAA" के रूप में दिखाया जाता है.
अगर EdgeType NONE है, तो इस मान को अनदेखा कर दिया जाएगा.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003e\u003ccode\u003echrome.cast.media.TextTrackStyle\u003c/code\u003e defines the style of text tracks (e.g., captions or subtitles) in a Cast session.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties for customizing text appearance, such as font, color, background, and edge styles.\u003c/p\u003e\n"],["\u003cp\u003eColors are specified using 8-digit hexadecimal RGBA values ("#RRGGBBAA").\u003c/p\u003e\n"],["\u003cp\u003eIt also supports custom application data and window styling for text tracks.\u003c/p\u003e\n"],["\u003cp\u003eTextTrackStyle properties allow developers to control how text is displayed during media playback on Cast devices.\u003c/p\u003e\n"]]],["`TextTrackStyle` defines the visual appearance of text tracks, using RGBA color strings (\"#RRGGBBAA\"). Key properties include `backgroundColor`, `edgeColor`, `foregroundColor`, and `windowColor`. Font styling is adjusted via `fontFamily`, `fontGenericFamily`, `fontScale`, and `fontStyle`. `edgeType`, `windowType`, and `windowRoundedCornerRadius` further refine the track's display. `customData` allows for the addition of application-specific data. It uses the constructor `TextTrackStyle`.\n"],null,["# Class: TextTrackStyle\n\nchrome.[cast](/cast/docs/reference/web_sender/chrome.cast).[media](/cast/docs/reference/web_sender/chrome.cast.media).TextTrackStyle\n====================================================================================================================================\n\nclass static\n\nDescribes style information for a text track.\nColors are represented as strings \"#RRGGBBAA\" where XX are the two\nhexadecimal symbols that represent the 0-255 value for the specific\nchannel/color. It follows CSS 8-digit hex color notation.\n(See http://dev.w3.org/csswg/css-color/#hex-notation).\n\nConstructor\n-----------\n\n### TextTrackStyle\n\nnew\nTextTrackStyle()\n\nProperties\n----------\n\n### backgroundColor\n\nnullable string\n\nBackground RGBA color, represented as \"#RRGGBBAA\".\nThe alpha channel should be used for transparent backgrounds.\n\n### customData\n\nnullable Object\n\nCustom application data.\n\n### edgeColor\n\nnullable string\n\nRGBA color for the edge, represented as \"#RRGGBBAA\".\nThis value will be ignored if edgeType is NONE.\n\n### edgeType\n\nnullable [chrome.cast.media.TextTrackEdgeType](/cast/docs/reference/web_sender/chrome.cast.media#.TextTrackEdgeType)\n\n### fontFamily\n\nnullable string\n\nIf the font is not available in the receiver the fontGenericFamily will\nbe used.\n\n### fontGenericFamily\n\nnullable [chrome.cast.media.TextTrackFontGenericFamily](/cast/docs/reference/web_sender/chrome.cast.media#.TextTrackFontGenericFamily)\n\n### fontScale\n\nnullable number\n\nThe font scaling factor for the text track (the default is 1.0).\n\n### fontStyle\n\nnullable [chrome.cast.media.TextTrackFontStyle](/cast/docs/reference/web_sender/chrome.cast.media#.TextTrackFontStyle)\n\n### foregroundColor\n\nnullable string\n\nForeground RGBA color, represented as \"#RRGGBBAA\".\n\n### windowColor\n\nnullable string\n\nRGBA color for the window, represented as \"#RRGGBBAA\".\nThis value will be ignored if windowType is NONE.\n\n### windowRoundedCornerRadius\n\nnullable number\n\nRounded corner radius absolute value in pixels (px).\nThis value will be ignored if windowType is not ROUNDED_CORNERS.\n\n### windowType\n\nnullable [chrome.cast.media.TextTrackWindowType](/cast/docs/reference/web_sender/chrome.cast.media#.TextTrackWindowType)\n\nThe window concept is defined in CEA-608 and CEA-708, See\nhttp://goo.gl/M3ea0X. In WebVTT is called a region."]]