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.
- package/dist/core/player.d.ts +45 -0
- package/dist/core/types.d.ts +8 -0
- package/dist/ogplayer.global.js +25 -19
- package/dist/ogplayer.js +23 -17
- package/dist/ui/og-player.d.ts +15 -0
- package/package.json +1 -1
package/dist/ui/og-player.d.ts
CHANGED
|
@@ -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;
|