unified-video-framework 1.4.227 → 1.4.229

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.
@@ -6,6 +6,11 @@ import { WebPlayerView } from '../WebPlayerView';
6
6
  *
7
7
  * This example demonstrates how to integrate Google IMA ads
8
8
  * (pre-roll, mid-roll, post-roll, and companion ads) with the video player.
9
+ *
10
+ * NEW: Automatic ad markers are now displayed on the seekbar!
11
+ * - Ad break positions from midrollTimes are automatically visualized
12
+ * - Yellow markers appear on the progress bar at ad break times
13
+ * - No manual chapter configuration needed
9
14
  */
10
15
 
11
16
  export const GoogleAdsExample: React.FC = () => {
@@ -35,6 +40,7 @@ export const GoogleAdsExample: React.FC = () => {
35
40
  adTagUrl: 'https://pubads.g.doubleclick.net/gampad/ads?iu=/21775744923/external/single_ad_samples&sz=640x480&cust_params=sample_ct%3Dlinear&ciu_szs=300x250%2C728x90&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=',
36
41
 
37
42
  // Optional: Specific mid-roll times (in seconds)
43
+ // These times will automatically appear as markers on the seekbar!
38
44
  // If not provided, VMAP schedule from ad server is used
39
45
  midrollTimes: [30, 60, 120],
40
46
 
@@ -70,6 +76,17 @@ export const GoogleAdsExample: React.FC = () => {
70
76
  },
71
77
  }}
72
78
 
79
+ // Chapter configuration for ad marker customization
80
+ chapters={{
81
+ enabled: true,
82
+ showChapterMarkers: true,
83
+ customStyles: {
84
+ progressMarkers: {
85
+ ad: '#FFD700', // Gold/yellow color for ad markers
86
+ },
87
+ },
88
+ }}
89
+
73
90
  // Video metadata
74
91
  metadata={{
75
92
  title: 'Big Buck Bunny with Google Ads',
@@ -174,7 +191,9 @@ export const GoogleAdsExample: React.FC = () => {
174
191
  *
175
192
  * 3. Mid-roll Configuration:
176
193
  * - Specify times in seconds: [30, 60, 120]
194
+ * - Markers automatically appear on seekbar at these times
177
195
  * - Or use VMAP schedule from ad server
196
+ * - Customize marker color via chapters.customStyles.progressMarkers.ad
178
197
  *
179
198
  * 4. Companion Ads:
180
199
  * - Create HTML containers with specific IDs