ogplayer 0.2.1 → 1.0.1

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.
@@ -89,6 +89,18 @@ export interface OGUIConfig {
89
89
  /** Extra inline CSS for the error overlay's Retry button, e.g.
90
90
  * "background:#3D6EF5;color:#fff;font-family:Georgia,serif". */
91
91
  retryButtonStyle?: string;
92
+ /** "Up next" countdown card in the lead window before a playlist item
93
+ * ends (default true). false = the queue still auto-advances, silently. */
94
+ showUpNext: boolean;
95
+ /** Seconds before the end at which the card appears (default 10,
96
+ * clamped to 1–60). */
97
+ upNextLeadSeconds: number;
98
+ /** Card text template — `{seconds}` and `{title}` are substituted
99
+ * (default "Next in {seconds}"). Your copy, any language. */
100
+ upNextText: string;
101
+ /** Extra inline CSS for the card (same contract as `titleStyle`), e.g.
102
+ * "background:#F6C445E6;color:#131313;font-family:Georgia,serif". */
103
+ upNextStyle?: string;
92
104
  }
93
105
  export declare const defaultUIConfig: OGUIConfig;
94
106
  /** Every control flag off — headless chrome in one call (mobile parity:
@@ -162,6 +174,9 @@ export declare class OGPlayerElement extends HTMLElement {
162
174
  private cancelAutoHide;
163
175
  private syncAll;
164
176
  private syncButtons;
177
+ /** Shows the "Up next" countdown card while a playlist item is inside its
178
+ * lead window; hidden config = the queue still advances, silently. */
179
+ private syncUpNext;
165
180
  private syncProgress;
166
181
  /** Yellow dots on the track where VMAP breaks will play (mobile parity). */
167
182
  private paintAdCues;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ogplayer",
3
- "version": "0.2.1",
3
+ "version": "1.0.1",
4
4
  "description": "OGPlayer web SDK \u2014 one video player API across Android, iOS and the web.",
5
5
  "type": "module",
6
6
  "main": "./dist/ogplayer.js",