اطلاعات سبک را برای یک آهنگ متنی توصیف می کند. رنگ ها به صورت رشته های "#RRGGBBAA" نشان داده می شوند که در آن XX دو نماد هگزادسیمال هستند که مقدار 0-255 را برای کانال/رنگ خاص نشان می دهند. از نماد رنگی هشت رقمی CSS پیروی می کند. (به http://dev.w3.org/csswg/css-color/#hex-notation مراجعه کنید).
سازنده
TextTrackStyle
TextTrackStyle () جدید
خواص
رنگ پس زمینه
رشته پوچ
رنگ RGBA پسزمینه، بهعنوان "#RRGGBBAA" نشان داده میشود. کانال آلفا باید برای پس زمینه های شفاف استفاده شود.
داده های سفارشی
شیء پوچ
داده های برنامه سفارشی
edgeColor
رشته پوچ
رنگ RGBA برای لبه، نشان داده شده به عنوان "#RRGGBBAA". اگر edgeType NONE باشد، این مقدار نادیده گرفته می شود.
تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-01-10 بهوقت ساعت هماهنگ جهانی."],[[["`chrome.cast.media.TextTrackStyle` defines the style of text tracks (e.g., captions or subtitles) in a Cast session."],["It includes properties for customizing text appearance, such as font, color, background, and edge styles."],["Colors are specified using 8-digit hexadecimal RGBA values (\"#RRGGBBAA\")."],["It also supports custom application data and window styling for text tracks."],["TextTrackStyle properties allow developers to control how text is displayed during media playback on Cast devices."]]],["`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"]]