Menjelaskan informasi gaya untuk trek teks.
Warna direpresentasikan sebagai string “#RRGGBBAA”, XX adalah dua
simbol heksadesimal yang mewakili nilai 0-255 untuk
saluran/warna tertentu. Kode ini mengikuti notasi warna heksadesimal 8 digit CSS.
(Lihat http://dev.w3.org/csswg/css-color/#hex-notation).
Konstruktor
TextTrackStyle
baru TextTrackStyle()
Properti
backgroundColor
string nullable
Warna RGBA latar belakang, direpresentasikan sebagai "#RRGGBBAA".
Saluran alfa harus digunakan untuk latar belakang transparan.
customData
Objek nullable
Data aplikasi kustom.
edgeColor
string nullable
Warna RGBA untuk tepi, direpresentasikan sebagai "#RRGGBBAA".
Nilai ini akan diabaikan jika edgeType adalah NONE.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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,[]]