מתאר את פרטי הסגנון של טראק טקסט.
צבעים מיוצגים כמחרוזות " #RRGGBBAA", כאשר XX הם שני
הסמלים ההקסדצימליים שמייצגים את הערך (0-255) של הערוץ או הצבע הספציפי. הקוד מבוסס על סימון צבע הקסדצימלי בן 8 ספרות של CSS.
(פרטים נוספים זמינים בכתובת http://dev.w3.org/csswg/css-color/#hex-notation).
יצרן
TextTrackStyle
חדש
TextTrackStyle()
תכונות
backgroundColor
מחרוזת שאפשר להזין ללא ערך (null)
צבע הרקע RGBA, מיוצג באמצעות "#RRGGBBAA".
יש להשתמש בערוץ אלפא לרקעים שקופים.
customData
אובייקט null
נתוני אפליקציה בהתאמה אישית.
edgeColor
מחרוזת שאפשר להזין ללא ערך (null)
צבע RGBA לקצה, מיוצג באמצעות "#RRGGBBAA".
המערכת תתעלם מהערך הזה אם הערך של edgeType הוא NONE.
[[["התוכן קל להבנה","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-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,[]]