ogplayer 0.2.0 → 1.0.0

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.
@@ -83,6 +83,24 @@ export interface OGUIConfig {
83
83
  * The retry callback runs player.retry() plus the SDK's housekeeping.
84
84
  */
85
85
  renderErrorOverlay?: (error: OGPlayerError, retry: () => void) => HTMLElement;
86
+ /** Extra inline CSS for the error-overlay message text (same contract as
87
+ * `titleStyle`), e.g. "font-family:Georgia,serif;font-size:16px". */
88
+ errorTextStyle?: string;
89
+ /** Extra inline CSS for the error overlay's Retry button, e.g.
90
+ * "background:#3D6EF5;color:#fff;font-family:Georgia,serif". */
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;
86
104
  }
87
105
  export declare const defaultUIConfig: OGUIConfig;
88
106
  /** Every control flag off — headless chrome in one call (mobile parity:
@@ -156,6 +174,9 @@ export declare class OGPlayerElement extends HTMLElement {
156
174
  private cancelAutoHide;
157
175
  private syncAll;
158
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;
159
180
  private syncProgress;
160
181
  /** Yellow dots on the track where VMAP breaks will play (mobile parity). */
161
182
  private paintAdCues;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ogplayer",
3
- "version": "0.2.0",
4
- "description": "OGPlayer web SDK one video player API across Android, iOS and the web.",
3
+ "version": "1.0.0",
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",
7
7
  "module": "./dist/ogplayer.js",
@@ -49,4 +49,4 @@
49
49
  "web-component"
50
50
  ],
51
51
  "author": "OGPlayer (Inverse DOO) <hello@ogplayer.tv>"
52
- }
52
+ }