unified-video-framework 1.4.436 → 1.4.438

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,9 +2,68 @@
2
2
  * Flash News Ticker Types
3
3
  *
4
4
  * Type definitions for the flash news ticker feature that displays
5
- * scrolling text overlays on the video player.
5
+ * scrolling text overlays on the video player. Supports both simple
6
+ * tickers and broadcast-style breaking news banners.
6
7
  */
7
8
 
9
+ /**
10
+ * Style variant for the ticker
11
+ * - 'simple': Basic scrolling ticker with single background
12
+ * - 'broadcast': Professional broadcast-style with header, body, globe, and LIVE badge
13
+ */
14
+ export type TickerStyleVariant = 'simple' | 'broadcast';
15
+
16
+ /**
17
+ * Broadcast style theme presets
18
+ */
19
+ export type BroadcastTheme =
20
+ | 'breaking-red' // Red header with blue body (classic breaking news)
21
+ | 'breaking-blue' // Blue header with dark body
22
+ | 'alert-red' // Full red theme for urgent alerts
23
+ | 'news-blue' // Professional blue theme
24
+ | 'custom'; // Custom colors via headerColor/bodyColor
25
+
26
+ /**
27
+ * Configuration for broadcast-style banner appearance
28
+ */
29
+ export interface BroadcastStyleConfig {
30
+ /** Theme preset. Default: 'breaking-red' */
31
+ theme?: BroadcastTheme;
32
+
33
+ /** Header text (e.g., "BREAKING NEWS", "LIVE", "ALERT"). Default: 'BREAKING NEWS' */
34
+ headerText?: string;
35
+
36
+ /** Show the globe/world graphic on the left. Default: true */
37
+ showGlobe?: boolean;
38
+
39
+ /** Show LIVE badge indicator. Default: true */
40
+ showLiveBadge?: boolean;
41
+
42
+ /** Custom header background color (only used when theme is 'custom') */
43
+ headerColor?: string;
44
+
45
+ /** Custom header text color. Default: '#ffffff' */
46
+ headerTextColor?: string;
47
+
48
+ /** Custom body/ticker background color (only used when theme is 'custom') */
49
+ bodyColor?: string;
50
+
51
+ /** Header height in pixels. Default: 28 */
52
+ headerHeight?: number;
53
+
54
+ /** Header font size in pixels. Default: 16 */
55
+ headerFontSize?: number;
56
+
57
+ /** Secondary text shown below header (optional) */
58
+ subHeaderText?: string;
59
+
60
+ /** Globe animation enabled. Default: true */
61
+ animateGlobe?: boolean;
62
+
63
+ /** LIVE badge pulse animation. Default: true */
64
+ pulseLiveBadge?: boolean;
65
+ }
66
+
8
67
  /**
9
68
  * Individual news item to display in the ticker
10
69
  */
@@ -44,7 +103,7 @@ export interface TickerDisplayConfig {
44
103
 
45
104
  // Visual styling
46
105
 
47
- /** Height of ticker in pixels. Default: 40 */
106
+ /** Height of ticker in pixels. Default: 40 for simple, 60 for broadcast */
48
107
  height?: number;
49
108
 
50
109
  /** Background color with alpha. Default: 'rgba(0,0,0,0.7)' */
@@ -72,6 +131,12 @@ export interface TickerDisplayConfig {
72
131
 
73
132
  /** Offset in pixels for safe area. Default: 0 for bottom, 10 for top */
74
133
  offset?: number;
134
+
135
+ /** Style variant for this specific ticker. Overrides parent styleVariant */
136
+ styleVariant?: TickerStyleVariant;
137
+
138
+ /** Broadcast style config for this specific ticker. Overrides parent broadcastStyle */
139
+ broadcastStyle?: BroadcastStyleConfig;
75
140
  }
76
141
 
77
142
  /**
@@ -87,6 +152,16 @@ export interface FlashNewsTickerConfig {
87
152
  /** Position on screen. Default: 'bottom' */
88
153
  position?: 'top' | 'bottom' | 'both';
89
154
 
155
+ /**
156
+ * Style variant for the ticker. Default: 'simple'
157
+ * - 'simple': Basic scrolling ticker (original style)
158
+ * - 'broadcast': Professional broadcast-style breaking news banner
159
+ */
160
+ styleVariant?: TickerStyleVariant;
161
+
162
+ /** Configuration for broadcast-style appearance (only used when styleVariant is 'broadcast') */
163
+ broadcastStyle?: BroadcastStyleConfig;
164
+
90
165
  /** Configuration for top ticker (only used when position is 'both') */
91
166
  topConfig?: TickerDisplayConfig;
92
167