@npaw/forge-web 9.6.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.
- package/LICENSE +10 -0
- package/README.md +41 -0
- package/dist/forge_kernel_wasm.d.ts +52 -0
- package/dist/forge_kernel_wasm.js +563 -0
- package/dist/forge_kernel_wasm_bg.wasm +0 -0
- package/dist/forge_kernel_wasm_bg.wasm.d.ts +15 -0
- package/dist/index.cjs +13224 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +2334 -0
- package/dist/index.d.ts +2334 -0
- package/dist/index.global.js +13520 -0
- package/dist/index.global.js.map +1 -0
- package/dist/index.js +13093 -0
- package/dist/index.js.map +1 -0
- package/dist/npaw-forge-web.iife.js +14086 -0
- package/dist/npaw-forge-web.iife.js.map +1 -0
- package/package.json +43 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2334 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) NPAW - All Rights Reserved
|
|
3
|
+
*
|
|
4
|
+
* This source code is protected under international copyright law. All rights
|
|
5
|
+
* reserved and protected by the copyright holders.
|
|
6
|
+
* This file is confidential and only available to authorized individuals with the
|
|
7
|
+
* permission of the copyright holders. If you encounter this file and do not have
|
|
8
|
+
* permission, please contact the copyright holders and delete this file.
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* @author: Victor Soto <victor.soto@nicepeopleatwork.com>
|
|
12
|
+
* @description: Public and internal TypeScript contracts for the Forge Web facade.
|
|
13
|
+
*/
|
|
14
|
+
type ForgeParamValue = string | number | boolean | null | undefined;
|
|
15
|
+
type ForgeParams = Record<string, ForgeParamValue>;
|
|
16
|
+
type NormalizedParams = Record<string, string>;
|
|
17
|
+
/** Typed identity transitions handled by the kernel identity command. */
|
|
18
|
+
type ForgeIdentityEventKind = "loginSuccess" | "loginFailed" | "logout" | "profileCreated" | "profileSelected" | "profileDeleted";
|
|
19
|
+
interface ForgeLoginSuccessOptions {
|
|
20
|
+
/** Authentication mechanism label, e.g. "password" or "oauth". */
|
|
21
|
+
method?: string;
|
|
22
|
+
/** Session-level user tier; defaults to "Registered" in the kernel. */
|
|
23
|
+
userType?: string;
|
|
24
|
+
}
|
|
25
|
+
interface ForgeLoginFailedOptions {
|
|
26
|
+
userId?: string;
|
|
27
|
+
method?: string;
|
|
28
|
+
errorCode?: string;
|
|
29
|
+
}
|
|
30
|
+
interface ForgeLogoutOptions {
|
|
31
|
+
reason?: string;
|
|
32
|
+
}
|
|
33
|
+
interface ForgeProfileOptions {
|
|
34
|
+
profileType?: string;
|
|
35
|
+
}
|
|
36
|
+
interface ForgeSearchResultClickOptions {
|
|
37
|
+
contentId?: string;
|
|
38
|
+
position?: number;
|
|
39
|
+
}
|
|
40
|
+
interface ForgeAttributionParams {
|
|
41
|
+
utmSource?: string;
|
|
42
|
+
utmMedium?: string;
|
|
43
|
+
utmCampaign?: string;
|
|
44
|
+
utmTerm?: string;
|
|
45
|
+
utmContent?: string;
|
|
46
|
+
utmUrl?: string;
|
|
47
|
+
}
|
|
48
|
+
type ForgeOutcomeKind = "accepted" | "deferred" | "dropped" | "ignored_duplicate" | "ignored_before_session_start" | "ignored_invalid_state" | "transport_failed" | "error";
|
|
49
|
+
interface ForgeOutcome {
|
|
50
|
+
kind: ForgeOutcomeKind;
|
|
51
|
+
message?: string;
|
|
52
|
+
}
|
|
53
|
+
interface ForgeDiagnostic {
|
|
54
|
+
code: string;
|
|
55
|
+
message: string;
|
|
56
|
+
recoverable: boolean;
|
|
57
|
+
attributes: Record<string, string>;
|
|
58
|
+
}
|
|
59
|
+
interface ForgeRenderedLog {
|
|
60
|
+
level: string;
|
|
61
|
+
tag: string;
|
|
62
|
+
message: string;
|
|
63
|
+
}
|
|
64
|
+
interface ForgeEventSnapshot {
|
|
65
|
+
eventName: string;
|
|
66
|
+
timemarkMs: number;
|
|
67
|
+
viewId?: number;
|
|
68
|
+
payload: NormalizedParams;
|
|
69
|
+
outcome: ForgeOutcome;
|
|
70
|
+
destination?: string;
|
|
71
|
+
dispatchSource: string;
|
|
72
|
+
replay: boolean;
|
|
73
|
+
renderedLog?: ForgeRenderedLog;
|
|
74
|
+
}
|
|
75
|
+
interface ForgeResult {
|
|
76
|
+
outcome: ForgeOutcome;
|
|
77
|
+
createdViewId?: number;
|
|
78
|
+
effects: unknown[];
|
|
79
|
+
}
|
|
80
|
+
interface ForgeRuntimeConfig {
|
|
81
|
+
accountCode: string;
|
|
82
|
+
appName?: string;
|
|
83
|
+
buildVariant?: string;
|
|
84
|
+
appReleaseVersion?: string;
|
|
85
|
+
lmaEndpoint?: string;
|
|
86
|
+
analyticsHost?: string;
|
|
87
|
+
userAgent?: string;
|
|
88
|
+
allowLocalHttp?: boolean;
|
|
89
|
+
processEventsBeforeSessionStart?: boolean;
|
|
90
|
+
preSessionEventQueueLimitEvents?: number;
|
|
91
|
+
preSessionEventQueueMaxAgeMs?: number;
|
|
92
|
+
logLevel?: string;
|
|
93
|
+
}
|
|
94
|
+
interface ForgeCreateOptions extends ForgeRuntimeConfig {
|
|
95
|
+
startSessionOnInitialize?: boolean;
|
|
96
|
+
initialSessionParams?: ForgeParams;
|
|
97
|
+
capture?: ForgeCaptureOptions;
|
|
98
|
+
wasm?: unknown;
|
|
99
|
+
transport?: ForgeTransport;
|
|
100
|
+
storage?: ForgeStorage;
|
|
101
|
+
clock?: ForgeClock;
|
|
102
|
+
onEvent?: ForgeEventListener;
|
|
103
|
+
onDiagnostic?: ForgeDiagnosticListener;
|
|
104
|
+
onLog?: ForgeLogListener;
|
|
105
|
+
}
|
|
106
|
+
interface ForgeCaptureOptions {
|
|
107
|
+
enabled?: boolean;
|
|
108
|
+
webVitals?: boolean;
|
|
109
|
+
lifecycle?: boolean;
|
|
110
|
+
navigation?: boolean;
|
|
111
|
+
clicks?: boolean;
|
|
112
|
+
scrolls?: boolean;
|
|
113
|
+
errors?: boolean;
|
|
114
|
+
network?: boolean | ForgeNetworkCaptureOptions;
|
|
115
|
+
sections?: boolean | ForgeSectionsCaptureOptions;
|
|
116
|
+
/**
|
|
117
|
+
* Local switch for the attribution auto-capture family (`raw_attribution`
|
|
118
|
+
* from landing-page `utm_*`/click-id query params). Defaults to enabled so
|
|
119
|
+
* the kernel capture plan decides.
|
|
120
|
+
*/
|
|
121
|
+
attribution?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Local switch for the focus auto-capture family (`raw_focus_change`,
|
|
124
|
+
* `raw_focus_dwell` from element `focusin`/`focusout`).
|
|
125
|
+
*
|
|
126
|
+
* Unlike every other family this defaults to `"off"` rather than to
|
|
127
|
+
* `enabled`. The kernel's `rc.fc` gate defaults to true and the FOCUS plan
|
|
128
|
+
* bit already ships in delivered plans, so following the usual
|
|
129
|
+
* `?? enabled` convention would start a brand-new high-frequency event
|
|
130
|
+
* family for every existing integration on upgrade with no config change.
|
|
131
|
+
* Focus capture is therefore opt-in.
|
|
132
|
+
*
|
|
133
|
+
* `true` is an alias for `"keyboard"`.
|
|
134
|
+
*/
|
|
135
|
+
focus?: boolean | ForgeFocusCaptureMode;
|
|
136
|
+
consent?: boolean | (() => boolean);
|
|
137
|
+
privacy?: ForgeCapturePrivacyOptions;
|
|
138
|
+
environment?: ForgeCaptureEnvironment;
|
|
139
|
+
installer?: ForgeCaptureInstaller;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* How the Web focus family treats DOM focus.
|
|
143
|
+
*
|
|
144
|
+
* - `off` — no focus observer at all. The default.
|
|
145
|
+
* - `keyboard` — only keyboard-driven focus: D-pad/arrow/Enter navigation is
|
|
146
|
+
* reported as `interactionSource: "remote"` (the shape the Android family
|
|
147
|
+
* reports) and Tab traversal as `"keyboard"`. This is the TV-browser case
|
|
148
|
+
* the family was designed for.
|
|
149
|
+
* - `all` — additionally reports pointer-driven focus as
|
|
150
|
+
* `interactionSource: "pointer"`. Intended for desktop site monitoring.
|
|
151
|
+
* Higher volume: browser `focusin` fires on every input, link and button,
|
|
152
|
+
* so this roughly tracks click volume. Because `interactionSource` is a
|
|
153
|
+
* kernel-preserved key mapped to the `ui.interaction_source` PPE fact,
|
|
154
|
+
* pointer-driven focus can be filtered out remotely with a propagation
|
|
155
|
+
* rule instead of being dropped at the binding.
|
|
156
|
+
*/
|
|
157
|
+
type ForgeFocusCaptureMode = "off" | "keyboard" | "all";
|
|
158
|
+
/**
|
|
159
|
+
* Local options for the sections auto-capture family
|
|
160
|
+
* (`raw_section_visible`/`raw_section_hidden`/`raw_content_impression`/
|
|
161
|
+
* `raw_content_dwell`). Section containers and content items are discovered
|
|
162
|
+
* through `data-npaw-section`/`data-npaw-content-id` markers plus optional CSS
|
|
163
|
+
* selectors; viewability/dwell knobs come from the kernel capture plan.
|
|
164
|
+
*/
|
|
165
|
+
interface ForgeSectionsCaptureOptions {
|
|
166
|
+
enabled?: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Local CSS selector for section containers, OR'd with the
|
|
169
|
+
* `data-npaw-section` marker selector. A non-empty remote plan
|
|
170
|
+
* `sections.sectionSelector` wins over this local value.
|
|
171
|
+
*/
|
|
172
|
+
sectionSelector?: string;
|
|
173
|
+
/**
|
|
174
|
+
* Local CSS selector for content items, OR'd with the
|
|
175
|
+
* `data-npaw-content-id` marker selector. A non-empty remote plan
|
|
176
|
+
* `sections.itemSelector` wins over this local value.
|
|
177
|
+
*/
|
|
178
|
+
itemSelector?: string;
|
|
179
|
+
/**
|
|
180
|
+
* Attribute name consulted for section names right after the
|
|
181
|
+
* `data-npaw-section` marker value in the automatic name priority chain.
|
|
182
|
+
*/
|
|
183
|
+
sectionNameAttribute?: string;
|
|
184
|
+
/**
|
|
185
|
+
* Reserved for a future heuristic detection tier (automatic carousel/rail
|
|
186
|
+
* discovery without markers or selectors). Not implemented; the value is
|
|
187
|
+
* currently ignored.
|
|
188
|
+
*/
|
|
189
|
+
detect?: "carousel";
|
|
190
|
+
}
|
|
191
|
+
/** Resolved sections capture options carried by the install options. */
|
|
192
|
+
interface ForgeResolvedSectionsCaptureOptions {
|
|
193
|
+
enabled: boolean;
|
|
194
|
+
sectionSelector?: string;
|
|
195
|
+
itemSelector?: string;
|
|
196
|
+
sectionNameAttribute?: string;
|
|
197
|
+
}
|
|
198
|
+
interface ForgeNetworkCaptureOptions {
|
|
199
|
+
enabled?: boolean;
|
|
200
|
+
fetch?: boolean;
|
|
201
|
+
xmlHttpRequest?: boolean;
|
|
202
|
+
}
|
|
203
|
+
interface ForgeCapturePrivacyOptions {
|
|
204
|
+
allowedQueryParams?: readonly string[];
|
|
205
|
+
allowedDataAttributes?: readonly string[];
|
|
206
|
+
allowedRequestHeaders?: readonly string[];
|
|
207
|
+
allowedResponseHeaders?: readonly string[];
|
|
208
|
+
maxStringLength?: number;
|
|
209
|
+
maxPayloadFields?: number;
|
|
210
|
+
/**
|
|
211
|
+
* When true, click/scroll element attribution replaces the plain
|
|
212
|
+
* `elementId`/`elementClasses` fields with FNV-1a hashes. Resource/DOM
|
|
213
|
+
* identifiers are application structure rather than user data, so plain
|
|
214
|
+
* capture is the default; hashing remains available as a privacy mode.
|
|
215
|
+
*/
|
|
216
|
+
hashElementIdentity?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* Local switch for capturing the visible text of click targets as
|
|
219
|
+
* `elementText`. Defaults to true; editable elements (inputs, textareas,
|
|
220
|
+
* contenteditable) never contribute text regardless of this option, and the
|
|
221
|
+
* kernel-side remote privacy policy (`captureVisibleText`) remains the
|
|
222
|
+
* remote authority that can strip text again.
|
|
223
|
+
*/
|
|
224
|
+
captureElementText?: boolean;
|
|
225
|
+
}
|
|
226
|
+
type ForgeFormEventKind = "view" | "start" | "field" | "submit";
|
|
227
|
+
/**
|
|
228
|
+
* Typed payload for `trackFormEvent`. Only these identifier/type fields are
|
|
229
|
+
* forwarded; form field values are never captured.
|
|
230
|
+
*/
|
|
231
|
+
interface ForgeFormEventData {
|
|
232
|
+
formId?: string;
|
|
233
|
+
formName?: string;
|
|
234
|
+
fieldName?: string;
|
|
235
|
+
fieldType?: string;
|
|
236
|
+
}
|
|
237
|
+
/** Injectable timer pair used by capture modules that arm real timers. */
|
|
238
|
+
interface ForgeCaptureTimers {
|
|
239
|
+
setTimeout(callback: () => void, delayMs: number): unknown;
|
|
240
|
+
clearTimeout(handle: unknown): void;
|
|
241
|
+
}
|
|
242
|
+
/** Structural subset of an IntersectionObserver entry consumed by capture. */
|
|
243
|
+
interface ForgeIntersectionObserverEntryLike {
|
|
244
|
+
target: Element;
|
|
245
|
+
intersectionRatio: number;
|
|
246
|
+
}
|
|
247
|
+
type ForgeIntersectionObserverCallback = (entries: readonly ForgeIntersectionObserverEntryLike[]) => void;
|
|
248
|
+
/** Structural subset of IntersectionObserver used by sections capture. */
|
|
249
|
+
interface ForgeIntersectionObserverLike {
|
|
250
|
+
observe(target: Element): void;
|
|
251
|
+
unobserve(target: Element): void;
|
|
252
|
+
disconnect(): void;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Injectable IntersectionObserver factory. When neither a factory nor a
|
|
256
|
+
* global `IntersectionObserver` constructor is available, sections capture is
|
|
257
|
+
* a silent no-op.
|
|
258
|
+
*/
|
|
259
|
+
type ForgeIntersectionObserverFactory = (callback: ForgeIntersectionObserverCallback, options: {
|
|
260
|
+
threshold: number[];
|
|
261
|
+
}) => ForgeIntersectionObserverLike;
|
|
262
|
+
/** Structural subset of MutationObserver used by sections capture rescans. */
|
|
263
|
+
interface ForgeMutationObserverLike {
|
|
264
|
+
observe(target: Node, options?: MutationObserverInit): void;
|
|
265
|
+
disconnect(): void;
|
|
266
|
+
}
|
|
267
|
+
type ForgeMutationObserverFactory = (callback: () => void) => ForgeMutationObserverLike;
|
|
268
|
+
interface ForgeCaptureEnvironment {
|
|
269
|
+
window?: Window;
|
|
270
|
+
document?: Document;
|
|
271
|
+
location?: Location;
|
|
272
|
+
performance?: Pick<Performance, "now">;
|
|
273
|
+
timers?: ForgeCaptureTimers;
|
|
274
|
+
intersectionObserverFactory?: ForgeIntersectionObserverFactory;
|
|
275
|
+
mutationObserverFactory?: ForgeMutationObserverFactory;
|
|
276
|
+
}
|
|
277
|
+
interface ForgeCaptureInstallOptions {
|
|
278
|
+
enabled: boolean;
|
|
279
|
+
webVitals: boolean;
|
|
280
|
+
lifecycle: boolean;
|
|
281
|
+
navigation: boolean;
|
|
282
|
+
clicks: boolean;
|
|
283
|
+
scrolls: boolean;
|
|
284
|
+
errors: boolean;
|
|
285
|
+
network: Required<ForgeNetworkCaptureOptions>;
|
|
286
|
+
sections: ForgeResolvedSectionsCaptureOptions;
|
|
287
|
+
attribution: boolean;
|
|
288
|
+
focus: ForgeFocusCaptureMode;
|
|
289
|
+
consentGranted(): boolean;
|
|
290
|
+
privacy: Required<ForgeCapturePrivacyOptions>;
|
|
291
|
+
environment: ForgeCaptureEnvironment;
|
|
292
|
+
}
|
|
293
|
+
interface ForgeCaptureHandle {
|
|
294
|
+
dispose(): void;
|
|
295
|
+
/**
|
|
296
|
+
* Reconciles installed capture observers against a kernel-computed capture
|
|
297
|
+
* plan. Optional so custom installers without plan support keep working;
|
|
298
|
+
* handles without it simply never react to plan updates.
|
|
299
|
+
*/
|
|
300
|
+
applyPlan?(plan: WasmCapturePlan): void;
|
|
301
|
+
/**
|
|
302
|
+
* Called by the facade after an app session starts. One-shot observations
|
|
303
|
+
* emitted before the session existed (the kernel ignores pre-session
|
|
304
|
+
* events by default) retry here — e.g. the landing attribution report when
|
|
305
|
+
* capture installs before `startSession`.
|
|
306
|
+
*/
|
|
307
|
+
notifySessionStarted?(): void;
|
|
308
|
+
}
|
|
309
|
+
type ForgeCaptureInstaller = (forge: unknown, options: ForgeCaptureInstallOptions) => ForgeCaptureHandle | void;
|
|
310
|
+
interface ForgeClock {
|
|
311
|
+
nowMs(): number;
|
|
312
|
+
}
|
|
313
|
+
interface ForgeTransport {
|
|
314
|
+
send(request: ForgeTransportRequest): Promise<ForgeHttpResponse>;
|
|
315
|
+
}
|
|
316
|
+
interface ForgeStorage {
|
|
317
|
+
read(key: string): Promise<string | null> | string | null;
|
|
318
|
+
write(key: string, value: string): Promise<void> | void;
|
|
319
|
+
delete(key: string): Promise<void> | void;
|
|
320
|
+
}
|
|
321
|
+
type ForgeEventListener = (snapshot: ForgeEventSnapshot) => void;
|
|
322
|
+
type ForgeDiagnosticListener = (diagnostic: ForgeDiagnostic) => void;
|
|
323
|
+
type ForgeLogListener = (log: ForgeRenderedLog) => void;
|
|
324
|
+
interface ForgeTransportRequest {
|
|
325
|
+
method: string;
|
|
326
|
+
url: string;
|
|
327
|
+
headers: Record<string, string>;
|
|
328
|
+
query: NormalizedParams;
|
|
329
|
+
body?: unknown;
|
|
330
|
+
bodyBytes?: number[];
|
|
331
|
+
}
|
|
332
|
+
interface ForgeHttpResponse {
|
|
333
|
+
status: number;
|
|
334
|
+
headers: Record<string, string>;
|
|
335
|
+
body: string;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Kernel-derived capture plan emitted by the WASM bridge whenever the plan
|
|
339
|
+
* hash changes (first Start onward, and after remote-config refreshes).
|
|
340
|
+
* Mirrors `WasmCapturePlan` in crates/forge-kernel-wasm/src/lib.rs. `hash` is
|
|
341
|
+
* a string because it carries a full 64-bit value. TypeScript may decode the
|
|
342
|
+
* plan bits to gate observers; deriving the plan (propagation policy, rules,
|
|
343
|
+
* sampling) stays in Rust.
|
|
344
|
+
*/
|
|
345
|
+
interface WasmCapturePlan {
|
|
346
|
+
planSeq: number;
|
|
347
|
+
bits: number;
|
|
348
|
+
configVersion?: string;
|
|
349
|
+
focus: WasmCapturePlanFocus;
|
|
350
|
+
sections: WasmCapturePlanSections;
|
|
351
|
+
attribution: WasmCapturePlanAttribution;
|
|
352
|
+
limits: WasmCapturePlanLimits;
|
|
353
|
+
behavior: WasmCapturePlanBehavior;
|
|
354
|
+
/**
|
|
355
|
+
* Extra `data-*` attribute names (kebab-case, without the `data-` prefix)
|
|
356
|
+
* to capture off interaction targets — all clicks and sections items. The
|
|
357
|
+
* kernel admits their camelized forms through the target-attribute
|
|
358
|
+
* allowlist and rewrites `elementData.<kebab>` to `target.attr.<camel>`;
|
|
359
|
+
* the binding only captures them. Remote entries union with the local
|
|
360
|
+
* privacy `allowedDataAttributes` option (remote adds, never removes).
|
|
361
|
+
* Omitted when empty.
|
|
362
|
+
*/
|
|
363
|
+
targetDataAttributes?: string[];
|
|
364
|
+
hash: string;
|
|
365
|
+
}
|
|
366
|
+
interface WasmCapturePlanFocus {
|
|
367
|
+
dwellThresholdMs: number;
|
|
368
|
+
dedupeMs: number;
|
|
369
|
+
repeatUnchangedDwell: boolean;
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Sections auto-capture knobs mirrored from `WasmCapturePlanSections` in
|
|
373
|
+
* crates/forge-kernel-wasm/src/lib.rs. `sectionNativeIds`/`itemNativeIds`
|
|
374
|
+
* target native view-id lookups on Android/Apple and are ignored on Web.
|
|
375
|
+
*/
|
|
376
|
+
interface WasmCapturePlanSections {
|
|
377
|
+
visibilityThresholdPct: number;
|
|
378
|
+
impressionMinVisibleMs: number;
|
|
379
|
+
dwellMs: number;
|
|
380
|
+
maxTrackedItems: number;
|
|
381
|
+
maxSections: number;
|
|
382
|
+
/** Remote CSS selector for section containers; absent when not remotely set. */
|
|
383
|
+
sectionSelector?: string;
|
|
384
|
+
/** Remote CSS selector for content items; absent when not remotely set. */
|
|
385
|
+
itemSelector?: string;
|
|
386
|
+
sectionNativeIds?: string[];
|
|
387
|
+
itemNativeIds?: string[];
|
|
388
|
+
/** Section naming source token: "auto" | "id" | "da" | "hd" | "ar". */
|
|
389
|
+
nameFrom: string;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Attribution auto-capture knobs mirrored from `WasmCapturePlanAttribution`
|
|
393
|
+
* in crates/forge-kernel-wasm/src/lib.rs. `deriveFromDeepLinks` and
|
|
394
|
+
* `installReferrerEnabled` are mobile-only knobs; the Web observer ignores
|
|
395
|
+
* them.
|
|
396
|
+
*/
|
|
397
|
+
interface WasmCapturePlanAttribution {
|
|
398
|
+
/**
|
|
399
|
+
* Extra landing-page query keys captured in addition to the built-in
|
|
400
|
+
* click-id list (gclid/fbclid/ttclid/msclkid/dclid/twclid); the union
|
|
401
|
+
* extends, never replaces, `utm_*` handling. Omitted when empty.
|
|
402
|
+
*/
|
|
403
|
+
extraQueryKeys?: string[];
|
|
404
|
+
includeLandingUrl: boolean;
|
|
405
|
+
deriveFromDeepLinks: boolean;
|
|
406
|
+
installReferrerEnabled: boolean;
|
|
407
|
+
}
|
|
408
|
+
interface WasmCapturePlanLimits {
|
|
409
|
+
maxTargetTextLength: number;
|
|
410
|
+
maxPayloadFields: number;
|
|
411
|
+
}
|
|
412
|
+
interface WasmCapturePlanBehavior {
|
|
413
|
+
joinMethod?: string;
|
|
414
|
+
seekHeuristicEnabled?: boolean;
|
|
415
|
+
seekJumpThresholdMs?: number;
|
|
416
|
+
metadataSamplingMs?: number;
|
|
417
|
+
}
|
|
418
|
+
type ForgeCapturePlanListener = (plan: WasmCapturePlan) => void;
|
|
419
|
+
/**
|
|
420
|
+
* Capture plan bit assignments. Frozen wire contract mirroring
|
|
421
|
+
* `capture_plan::bits` in crates/forge-kernel/src/capture_plan.rs; values must
|
|
422
|
+
* never be reassigned.
|
|
423
|
+
*/
|
|
424
|
+
declare const CAPTURE_PLAN_BITS: {
|
|
425
|
+
readonly NAVIGATION: number;
|
|
426
|
+
readonly PAGE_VIEW: number;
|
|
427
|
+
readonly CLICKS: number;
|
|
428
|
+
readonly SCROLLS: number;
|
|
429
|
+
readonly LIFECYCLE: number;
|
|
430
|
+
readonly DEEP_LINK: number;
|
|
431
|
+
readonly FOCUS: number;
|
|
432
|
+
readonly REMOTE_KEY: number;
|
|
433
|
+
readonly ERRORS: number;
|
|
434
|
+
readonly WEB_VITALS: number;
|
|
435
|
+
readonly NETWORK: number;
|
|
436
|
+
readonly SECTIONS: number;
|
|
437
|
+
readonly ATTRIBUTION: number;
|
|
438
|
+
};
|
|
439
|
+
declare function isCapturePlanEnabled(bits: number, bit: number): boolean;
|
|
440
|
+
interface WasmTransportRequest extends ForgeTransportRequest {
|
|
441
|
+
}
|
|
442
|
+
interface WasmHttpResponse extends ForgeHttpResponse {
|
|
443
|
+
}
|
|
444
|
+
interface VideoOptions {
|
|
445
|
+
joinTimeCalculationMode?: "default" | "legacy";
|
|
446
|
+
adJoinFromAdBreakStart?: boolean;
|
|
447
|
+
adConnectedRequiresAdJoin?: boolean;
|
|
448
|
+
contentIsLiveNoSeek?: boolean;
|
|
449
|
+
ignorePauseSmallEvents?: boolean;
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Mirrors the kernel serde contract in crates/forge-kernel/src/wire/bundle.rs
|
|
453
|
+
* (`OverrideBundle`, camelCase keys). Values in `scalars` must reach the kernel
|
|
454
|
+
* as strings; the facade coerces other primitives before crossing the boundary.
|
|
455
|
+
*/
|
|
456
|
+
interface OverrideBundle {
|
|
457
|
+
scalars?: Record<string, string | number | boolean>;
|
|
458
|
+
numbers?: Record<string, number>;
|
|
459
|
+
bools?: Record<string, boolean>;
|
|
460
|
+
dimensions?: Record<string, unknown>;
|
|
461
|
+
properties?: Record<string, unknown>;
|
|
462
|
+
adProperties?: Record<string, unknown>;
|
|
463
|
+
codecSettings?: Record<string, unknown>;
|
|
464
|
+
metrics?: Record<string, unknown>;
|
|
465
|
+
sessionMetrics?: Record<string, unknown>;
|
|
466
|
+
expectedPattern?: Record<string, number[]>;
|
|
467
|
+
breaksTime?: number[];
|
|
468
|
+
adBreaksTime?: number[];
|
|
469
|
+
device?: DeviceOverrides;
|
|
470
|
+
control?: OverrideControlOptions;
|
|
471
|
+
}
|
|
472
|
+
/** Mirrors `DeviceOverrides` in crates/forge-kernel/src/wire/bundle.rs (string-only fields). */
|
|
473
|
+
interface DeviceOverrides {
|
|
474
|
+
brand?: string;
|
|
475
|
+
code?: string;
|
|
476
|
+
model?: string;
|
|
477
|
+
type?: string;
|
|
478
|
+
osName?: string;
|
|
479
|
+
osVersion?: string;
|
|
480
|
+
}
|
|
481
|
+
/** Mirrors `ControlOptions` in crates/forge-kernel/src/wire/bundle.rs. */
|
|
482
|
+
interface OverrideControlOptions {
|
|
483
|
+
errorsToIgnore?: string[];
|
|
484
|
+
fatalErrors?: string[];
|
|
485
|
+
nonFatalErrors?: string[];
|
|
486
|
+
legacyErrorNames?: boolean;
|
|
487
|
+
forceInit?: boolean;
|
|
488
|
+
pendingMetadata?: string[];
|
|
489
|
+
waitForMetadata?: boolean;
|
|
490
|
+
waitForMetadataTimeoutMs?: number;
|
|
491
|
+
contentIsLiveNoSeek?: boolean;
|
|
492
|
+
ignorePauseSmallEvents?: boolean;
|
|
493
|
+
parseManifest?: boolean;
|
|
494
|
+
parseCdnNode?: boolean;
|
|
495
|
+
parseCdnNodeDisableFallback?: boolean;
|
|
496
|
+
parseCdnNodeAllowedGetMethodOnRetry?: boolean;
|
|
497
|
+
parseCdnNodeRequestDelayed?: boolean;
|
|
498
|
+
parseCdnNodeList?: string[];
|
|
499
|
+
parseCdnNameHeaderList?: string[];
|
|
500
|
+
parseCdnNodeHeaderList?: string[];
|
|
501
|
+
parseManifestAuth?: Record<string, string>;
|
|
502
|
+
autoRestartOnMaxTimeExpiration?: boolean;
|
|
503
|
+
autoDetectBackground?: boolean;
|
|
504
|
+
}
|
|
505
|
+
type ContentType = "live" | "vod" | "audio" | "unknown";
|
|
506
|
+
interface ContentMetadata {
|
|
507
|
+
player?: string;
|
|
508
|
+
playerVersion?: string;
|
|
509
|
+
resource?: string;
|
|
510
|
+
parsedResource?: string;
|
|
511
|
+
title?: string;
|
|
512
|
+
program?: string;
|
|
513
|
+
transactionCode?: string;
|
|
514
|
+
properties?: Record<string, unknown>;
|
|
515
|
+
contentId?: string;
|
|
516
|
+
contentLanguage?: string;
|
|
517
|
+
subtitles?: string;
|
|
518
|
+
cdn?: string;
|
|
519
|
+
streamingProtocol?: string;
|
|
520
|
+
transportFormat?: string;
|
|
521
|
+
privacyProtocol?: string;
|
|
522
|
+
householdId?: string;
|
|
523
|
+
username?: string;
|
|
524
|
+
profileId?: string;
|
|
525
|
+
userType?: string;
|
|
526
|
+
anonymousUser?: string;
|
|
527
|
+
email?: string;
|
|
528
|
+
ip?: string;
|
|
529
|
+
isp?: string;
|
|
530
|
+
connectionType?: string;
|
|
531
|
+
nodeHost?: string;
|
|
532
|
+
nodeType?: string;
|
|
533
|
+
nodeTypeString?: string;
|
|
534
|
+
linkedViewId?: string;
|
|
535
|
+
package?: string;
|
|
536
|
+
saga?: string;
|
|
537
|
+
tvShow?: string;
|
|
538
|
+
season?: string;
|
|
539
|
+
episodeTitle?: string;
|
|
540
|
+
channel?: string;
|
|
541
|
+
drm?: string;
|
|
542
|
+
codecSettings?: Record<string, unknown>;
|
|
543
|
+
contentTypeName?: string;
|
|
544
|
+
genre?: string;
|
|
545
|
+
imdbId?: string;
|
|
546
|
+
gracenoteId?: string;
|
|
547
|
+
contractedResolution?: string;
|
|
548
|
+
cost?: string;
|
|
549
|
+
price?: string;
|
|
550
|
+
playbackType?: string;
|
|
551
|
+
contentType?: ContentType;
|
|
552
|
+
playheadMs?: number;
|
|
553
|
+
durationMs?: number;
|
|
554
|
+
seekDurationMs?: number;
|
|
555
|
+
bufferDurationMs?: number;
|
|
556
|
+
segmentDurationMs?: number;
|
|
557
|
+
bitrate?: number;
|
|
558
|
+
throughput?: number;
|
|
559
|
+
totalBytes?: number;
|
|
560
|
+
droppedFrames?: number;
|
|
561
|
+
rendition?: string;
|
|
562
|
+
videoCodec?: string;
|
|
563
|
+
audioCodec?: string;
|
|
564
|
+
codecProfile?: string;
|
|
565
|
+
containerFormat?: string;
|
|
566
|
+
legacyCustomDimensions?: Record<string, string>;
|
|
567
|
+
customDimensions?: Record<string, unknown>;
|
|
568
|
+
customMetrics?: Record<string, unknown>;
|
|
569
|
+
errorCode?: string;
|
|
570
|
+
errorMessage?: string;
|
|
571
|
+
errorMetadata?: string;
|
|
572
|
+
errorLevel?: string;
|
|
573
|
+
forceInit?: boolean;
|
|
574
|
+
convertFromBuffer?: boolean;
|
|
575
|
+
convertFromSeek?: boolean;
|
|
576
|
+
customEventJson?: string;
|
|
577
|
+
}
|
|
578
|
+
interface QosSnapshot {
|
|
579
|
+
throughput?: number;
|
|
580
|
+
fps?: number;
|
|
581
|
+
latency?: number;
|
|
582
|
+
playrate?: number;
|
|
583
|
+
droppedFrames?: number;
|
|
584
|
+
totalBytes?: number;
|
|
585
|
+
packetLoss?: number;
|
|
586
|
+
packetSent?: number;
|
|
587
|
+
droppedPackets?: number;
|
|
588
|
+
lostPackets?: number;
|
|
589
|
+
multicastAffectionTimeMs?: number;
|
|
590
|
+
}
|
|
591
|
+
interface MetadataSnapshot {
|
|
592
|
+
content?: ContentMetadata;
|
|
593
|
+
qos?: QosSnapshot;
|
|
594
|
+
}
|
|
595
|
+
type VideoEventName = "init" | "start" | "join" | "pause" | "resume" | "seekBegin" | "seekEnd" | "bufferBegin" | "bufferEnd" | "stop" | "error" | "custom" | "customEnd" | "fatalError" | "metadataUpdate";
|
|
596
|
+
type AdEventName = "adManifest" | "adBreakStart" | "adInit" | "adStart" | "adJoin" | "adPause" | "adResume" | "adBufferBegin" | "adBufferEnd" | "adQuartile" | "adClick" | "adSkip" | "adStop" | "adError" | "adFatalError" | "adBreakStop";
|
|
597
|
+
interface AdMetadata {
|
|
598
|
+
player?: string;
|
|
599
|
+
creativeId?: string;
|
|
600
|
+
adCampaign?: string;
|
|
601
|
+
adPlayerVersion?: string;
|
|
602
|
+
adProvider?: string;
|
|
603
|
+
adResource?: string;
|
|
604
|
+
adUrl?: string;
|
|
605
|
+
adTitle?: string;
|
|
606
|
+
adDurationMs?: number;
|
|
607
|
+
adPlayheadMs?: number;
|
|
608
|
+
adBitrate?: number;
|
|
609
|
+
adProperties?: Record<string, unknown>;
|
|
610
|
+
legacyCustomDimensions?: Record<string, string>;
|
|
611
|
+
position?: "pre" | "mid" | "post" | "unknown";
|
|
612
|
+
skippable?: boolean;
|
|
613
|
+
fullscreen?: boolean;
|
|
614
|
+
audio?: boolean;
|
|
615
|
+
givenAds?: number;
|
|
616
|
+
expectedAds?: number;
|
|
617
|
+
givenBreaks?: number;
|
|
618
|
+
expectedBreaks?: number;
|
|
619
|
+
expectedPattern?: string | Record<string, number[]>;
|
|
620
|
+
breaksTime?: string;
|
|
621
|
+
breakNumber?: number;
|
|
622
|
+
adNumber?: number;
|
|
623
|
+
adNumberInBreak?: number;
|
|
624
|
+
quartile?: number;
|
|
625
|
+
insertionType?: "csai" | "ssai" | "unknown";
|
|
626
|
+
viewability?: AdViewabilitySample;
|
|
627
|
+
errorCode?: string;
|
|
628
|
+
errorMessage?: string;
|
|
629
|
+
errorMetadata?: string;
|
|
630
|
+
errorLevel?: string;
|
|
631
|
+
}
|
|
632
|
+
interface AdViewabilitySample {
|
|
633
|
+
maxIntervalMs?: number;
|
|
634
|
+
viewedDurationMs?: number;
|
|
635
|
+
}
|
|
636
|
+
interface NetworkObservation {
|
|
637
|
+
eventId: string;
|
|
638
|
+
source?: string;
|
|
639
|
+
targetUrl: string;
|
|
640
|
+
method: string;
|
|
641
|
+
startElapsedRealtimeMs?: number;
|
|
642
|
+
endElapsedRealtimeMs?: number;
|
|
643
|
+
durationMs: number;
|
|
644
|
+
responseStatusCode: number;
|
|
645
|
+
outcome?: string;
|
|
646
|
+
responseStatusText?: string;
|
|
647
|
+
errorMessage?: string;
|
|
648
|
+
traceparent?: string;
|
|
649
|
+
dnsDurationMs?: number;
|
|
650
|
+
connectDurationMs?: number;
|
|
651
|
+
sslDurationMs?: number;
|
|
652
|
+
requestDurationMs?: number;
|
|
653
|
+
timeToFirstByteMs?: number;
|
|
654
|
+
responseDownloadDurationMs?: number;
|
|
655
|
+
redirectDurationMs?: number;
|
|
656
|
+
redirectCount?: number;
|
|
657
|
+
protocol?: string;
|
|
658
|
+
/**
|
|
659
|
+
* Request/response body sizes in bytes. Body content is never captured:
|
|
660
|
+
* the binding measures the outgoing body bytes when it can and falls back
|
|
661
|
+
* to the `Content-Length` header; only these sizes travel to the kernel
|
|
662
|
+
* (wire keys `requestBytes`/`responseBytes`, facts `net.bytes_out`/
|
|
663
|
+
* `net.bytes_in`).
|
|
664
|
+
*/
|
|
665
|
+
requestBytes?: number;
|
|
666
|
+
responseBytes?: number;
|
|
667
|
+
requestQuery?: NormalizedParams;
|
|
668
|
+
requestHeaders?: NormalizedParams;
|
|
669
|
+
responseHeaders?: NormalizedParams;
|
|
670
|
+
/**
|
|
671
|
+
* Optional explicit observation wall-clock time in milliseconds. When
|
|
672
|
+
* omitted the runtime stamps the observation with the current clock; set it
|
|
673
|
+
* only when forwarding a network fact observed earlier (e.g. replayed or
|
|
674
|
+
* recorded requests).
|
|
675
|
+
*/
|
|
676
|
+
timemarkMs?: number;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Copyright (C) NPAW - All Rights Reserved
|
|
681
|
+
*
|
|
682
|
+
* This source code is protected under international copyright law. All rights
|
|
683
|
+
* reserved and protected by the copyright holders.
|
|
684
|
+
* This file is confidential and only available to authorized individuals with the
|
|
685
|
+
* permission of the copyright holders. If you encounter this file and do not have
|
|
686
|
+
* permission, please contact the copyright holders and delete this file.
|
|
687
|
+
*
|
|
688
|
+
*
|
|
689
|
+
* @author: Victor Soto <victor.soto@nicepeopleatwork.com>
|
|
690
|
+
* @description: Video, player-adapter, and ad-adapter facade classes for Forge Web.
|
|
691
|
+
*/
|
|
692
|
+
|
|
693
|
+
type VideoMetadataSampler = () => MetadataSnapshot | undefined;
|
|
694
|
+
type AdMetadataSampler = () => AdMetadata | undefined;
|
|
695
|
+
interface PlayerAdapterHost {
|
|
696
|
+
attach(video: VideoAdapter): void;
|
|
697
|
+
detach?(): void;
|
|
698
|
+
}
|
|
699
|
+
interface AdAdapterHost {
|
|
700
|
+
attach(video: VideoAdapter, adapter: AdAdapter): void;
|
|
701
|
+
detach?(): void;
|
|
702
|
+
willShowCsaiPostroll?(): boolean;
|
|
703
|
+
}
|
|
704
|
+
declare class PlayerAdapter implements PlayerAdapterHost {
|
|
705
|
+
protected video: VideoAdapter | undefined;
|
|
706
|
+
attach(video: VideoAdapter): void;
|
|
707
|
+
detach(): void;
|
|
708
|
+
}
|
|
709
|
+
type PlayerAdapterClass<TPlayer = unknown, TOptions = unknown> = new (player: TPlayer, options?: TOptions) => PlayerAdapterHost;
|
|
710
|
+
type AdAdapterClass<TPlayer = unknown, TOptions = unknown> = new (player: TPlayer, options?: TOptions) => AdAdapterHost;
|
|
711
|
+
interface VideoBuilderOptions {
|
|
712
|
+
identifier?: string;
|
|
713
|
+
options?: VideoOptions;
|
|
714
|
+
metadata?: ContentMetadata;
|
|
715
|
+
qos?: QosSnapshot;
|
|
716
|
+
playerAdapter?: PlayerAdapterHost;
|
|
717
|
+
adAdapter?: AdAdapterHost;
|
|
718
|
+
}
|
|
719
|
+
declare class VideoBuilder {
|
|
720
|
+
private readonly runtime;
|
|
721
|
+
private readonly register;
|
|
722
|
+
private identifierValue;
|
|
723
|
+
private optionsValue;
|
|
724
|
+
private metadataValue;
|
|
725
|
+
private qosValue;
|
|
726
|
+
private playerAdapterValue;
|
|
727
|
+
private adAdapterValue;
|
|
728
|
+
constructor(runtime: unknown, register: (identifier: string | undefined, video: VideoAdapter) => void);
|
|
729
|
+
setIdentifier(identifier: string): this;
|
|
730
|
+
setOptions(options: VideoBuilderOptions | VideoOptions): this;
|
|
731
|
+
setMetadata(metadata: ContentMetadata): this;
|
|
732
|
+
setQos(qos: QosSnapshot): this;
|
|
733
|
+
setPlayerAdapter(adapter: PlayerAdapterHost): this;
|
|
734
|
+
setAdAdapter(adapter: AdAdapterHost): this;
|
|
735
|
+
build(): Promise<VideoAdapter>;
|
|
736
|
+
}
|
|
737
|
+
declare class VideoAdapter {
|
|
738
|
+
readonly viewId: number;
|
|
739
|
+
private readonly runtime;
|
|
740
|
+
private metadata;
|
|
741
|
+
private qos;
|
|
742
|
+
private playerAdapter;
|
|
743
|
+
private adAdapter;
|
|
744
|
+
private state;
|
|
745
|
+
private adState;
|
|
746
|
+
constructor(runtime: unknown, viewId: number, metadata?: ContentMetadata, qos?: QosSnapshot);
|
|
747
|
+
setPlayerAdapter(adapter: PlayerAdapterHost): void;
|
|
748
|
+
setAdAdapter(adapter: AdAdapterHost): AdAdapter;
|
|
749
|
+
createAdReporter(adapterVersion?: string): AdAdapter;
|
|
750
|
+
removeAdAdapter(): boolean;
|
|
751
|
+
willShowCsaiPostroll(): boolean;
|
|
752
|
+
contentSnapshot(): ContentMetadata;
|
|
753
|
+
contentStateSnapshot(): {
|
|
754
|
+
started: boolean;
|
|
755
|
+
joined: boolean;
|
|
756
|
+
paused: boolean;
|
|
757
|
+
};
|
|
758
|
+
adStateSnapshot(): {
|
|
759
|
+
breakStarted: boolean;
|
|
760
|
+
started: boolean;
|
|
761
|
+
};
|
|
762
|
+
markAdBreakStarted(): void;
|
|
763
|
+
markAdBreakStopped(): void;
|
|
764
|
+
markAdStarted(): void;
|
|
765
|
+
markAdStopped(): void;
|
|
766
|
+
resetAdState(): void;
|
|
767
|
+
videoPingIntervalSeconds(): number | undefined;
|
|
768
|
+
updateMetadata(snapshot: MetadataSnapshot): ForgeResultPromise;
|
|
769
|
+
registerMetadataSampler(sampler: VideoMetadataSampler): () => void;
|
|
770
|
+
registerAdMetadataSampler(sampler: AdMetadataSampler): () => void;
|
|
771
|
+
fireInit(metadata?: ContentMetadata): ForgeResultPromise;
|
|
772
|
+
fireInit(overrides?: OverrideBundle, metadata?: ContentMetadata): ForgeResultPromise;
|
|
773
|
+
fireStart(metadata?: ContentMetadata): ForgeResultPromise;
|
|
774
|
+
fireStart(overrides?: OverrideBundle, metadata?: ContentMetadata): ForgeResultPromise;
|
|
775
|
+
fireJoin(metadata?: ContentMetadata): ForgeResultPromise;
|
|
776
|
+
fireJoin(overrides?: OverrideBundle, metadata?: ContentMetadata): ForgeResultPromise;
|
|
777
|
+
firePause(metadata?: ContentMetadata): ForgeResultPromise;
|
|
778
|
+
firePause(overrides?: OverrideBundle, metadata?: ContentMetadata): ForgeResultPromise;
|
|
779
|
+
fireResume(metadata?: ContentMetadata): ForgeResultPromise;
|
|
780
|
+
fireResume(overrides?: OverrideBundle, metadata?: ContentMetadata): ForgeResultPromise;
|
|
781
|
+
fireSeekBegin(metadata?: ContentMetadata): ForgeResultPromise;
|
|
782
|
+
fireSeekBegin(overrides?: OverrideBundle, metadata?: ContentMetadata): ForgeResultPromise;
|
|
783
|
+
fireSeekEnd(metadata?: ContentMetadata): ForgeResultPromise;
|
|
784
|
+
fireSeekEnd(overrides?: OverrideBundle, metadata?: ContentMetadata): ForgeResultPromise;
|
|
785
|
+
fireBufferBegin(metadata?: ContentMetadata): ForgeResultPromise;
|
|
786
|
+
fireBufferBegin(overrides?: OverrideBundle, metadata?: ContentMetadata): ForgeResultPromise;
|
|
787
|
+
fireBufferEnd(metadata?: ContentMetadata): ForgeResultPromise;
|
|
788
|
+
fireBufferEnd(overrides?: OverrideBundle, metadata?: ContentMetadata): ForgeResultPromise;
|
|
789
|
+
fireStop(metadata?: ContentMetadata): ForgeResultPromise;
|
|
790
|
+
fireStop(overrides?: OverrideBundle, metadata?: ContentMetadata): ForgeResultPromise;
|
|
791
|
+
fireError(errorCode: string, errorMessage?: string, metadata?: ContentMetadata): ForgeResultPromise;
|
|
792
|
+
fireFatalError(errorCode: string, errorMessage?: string, metadata?: ContentMetadata): ForgeResultPromise;
|
|
793
|
+
fireCustom(name: string, params?: Record<string, unknown>): ForgeResultPromise;
|
|
794
|
+
fire(event: VideoEventName, overrides?: OverrideBundle, metadata?: ContentMetadata, qos?: QosSnapshot): ForgeResultPromise;
|
|
795
|
+
private updateContentState;
|
|
796
|
+
detach(): void;
|
|
797
|
+
destroy(): ForgeResultPromise;
|
|
798
|
+
}
|
|
799
|
+
declare class AdAdapter {
|
|
800
|
+
private readonly viewId;
|
|
801
|
+
private readonly adapterVersion?;
|
|
802
|
+
private readonly runtime;
|
|
803
|
+
private metadata;
|
|
804
|
+
constructor(runtime: unknown, viewId: number, adapterVersion?: string | undefined);
|
|
805
|
+
updateMetadata(metadata: AdMetadata): void;
|
|
806
|
+
fire(event: AdEventName, metadata?: AdMetadata, overrides?: OverrideBundle): ForgeResultPromise;
|
|
807
|
+
fireManifest(metadata?: AdMetadata): ForgeResultPromise;
|
|
808
|
+
fireBreakStart(metadata?: AdMetadata): ForgeResultPromise;
|
|
809
|
+
fireBreakStop(metadata?: AdMetadata): ForgeResultPromise;
|
|
810
|
+
fireInit(metadata?: AdMetadata): ForgeResultPromise;
|
|
811
|
+
fireStart(metadata?: AdMetadata): ForgeResultPromise;
|
|
812
|
+
fireJoin(metadata?: AdMetadata): ForgeResultPromise;
|
|
813
|
+
firePause(metadata?: AdMetadata): ForgeResultPromise;
|
|
814
|
+
fireResume(metadata?: AdMetadata): ForgeResultPromise;
|
|
815
|
+
fireBufferBegin(metadata?: AdMetadata): ForgeResultPromise;
|
|
816
|
+
fireBufferEnd(metadata?: AdMetadata): ForgeResultPromise;
|
|
817
|
+
fireQuartile(quartile: number, metadata?: AdMetadata): ForgeResultPromise;
|
|
818
|
+
fireClick(metadata?: AdMetadata): ForgeResultPromise;
|
|
819
|
+
fireSkip(metadata?: AdMetadata): ForgeResultPromise;
|
|
820
|
+
fireStop(metadata?: AdMetadata): ForgeResultPromise;
|
|
821
|
+
fireError(errorCode: string, errorMessage?: string, metadata?: AdMetadata): ForgeResultPromise;
|
|
822
|
+
fireFatalError(errorCode: string, errorMessage?: string, metadata?: AdMetadata): ForgeResultPromise;
|
|
823
|
+
}
|
|
824
|
+
type ForgeResultPromise = Promise<ForgeResult>;
|
|
825
|
+
/**
|
|
826
|
+
* Normalizes an integrator-provided override bundle into the exact shape the
|
|
827
|
+
* kernel deserializes (crates/forge-kernel/src/wire/bundle.rs): scalar and
|
|
828
|
+
* device values become strings (empty strings preserved), null/undefined
|
|
829
|
+
* entries are dropped, and integer lists are rounded so they fit i64 fields.
|
|
830
|
+
*/
|
|
831
|
+
declare function serializeOverrideBundle(overrides?: OverrideBundle): OverrideBundle | undefined;
|
|
832
|
+
|
|
833
|
+
declare class NPAWForge {
|
|
834
|
+
private readonly runtime;
|
|
835
|
+
static readonly adapters: Record<string, unknown>;
|
|
836
|
+
static defaultInstance: NPAWForge | undefined;
|
|
837
|
+
static create(options: ForgeCreateOptions): Promise<NPAWForge>;
|
|
838
|
+
private readonly videos;
|
|
839
|
+
private defaultVideo;
|
|
840
|
+
private captureHandle;
|
|
841
|
+
private capturePlanUnsubscribe;
|
|
842
|
+
private constructor();
|
|
843
|
+
onEvent(listener: ForgeEventListener): () => void;
|
|
844
|
+
onDiagnostic(listener: ForgeDiagnosticListener): () => void;
|
|
845
|
+
onLog(listener: ForgeLogListener): () => void;
|
|
846
|
+
startSession(params?: ForgeParams): Promise<ForgeResult>;
|
|
847
|
+
endSession(params?: ForgeParams): Promise<ForgeResult>;
|
|
848
|
+
trackSessionNavigation(params?: ForgeParams): Promise<ForgeResult>;
|
|
849
|
+
trackSessionEvent(name: string, params?: ForgeParams): Promise<ForgeResult>;
|
|
850
|
+
trackSessionEventStop(name: string, params?: ForgeParams): Promise<ForgeResult>;
|
|
851
|
+
trackSessionError(errorCode: string, errorMessage?: string, params?: ForgeParams): Promise<ForgeResult>;
|
|
852
|
+
trackRawEvent(name: string, params?: ForgeParams): Promise<ForgeResult>;
|
|
853
|
+
/**
|
|
854
|
+
* Emits a `raw_search` event. The query text is subject to the kernel-side
|
|
855
|
+
* remote visible-text privacy policy, which can strip it before any payload
|
|
856
|
+
* leaves the device.
|
|
857
|
+
*/
|
|
858
|
+
trackSearch(query: string, resultCount?: number): Promise<ForgeResult>;
|
|
859
|
+
/**
|
|
860
|
+
* Emits `raw_form_view|raw_form_start|raw_form_field|raw_form_submit`.
|
|
861
|
+
* Only typed identifier fields are forwarded; form field values are never
|
|
862
|
+
* captured by design.
|
|
863
|
+
*/
|
|
864
|
+
trackFormEvent(kind: ForgeFormEventKind, data?: ForgeFormEventData): Promise<ForgeResult>;
|
|
865
|
+
/**
|
|
866
|
+
* Emits a typed business raw event: the name gains the `raw_` prefix when
|
|
867
|
+
* missing and every attribute travels under the `target.attr.*` convention,
|
|
868
|
+
* so the kernel target-attribute allowlist and PPE `target.attr.*` facts
|
|
869
|
+
* apply unchanged.
|
|
870
|
+
*/
|
|
871
|
+
trackBusinessEvent(name: string, attributes?: ForgeParams): Promise<ForgeResult>;
|
|
872
|
+
/**
|
|
873
|
+
* Emits a `raw_search_result_click` event for a result chosen from the
|
|
874
|
+
* search results produced by the query last reported via `trackSearch`.
|
|
875
|
+
*/
|
|
876
|
+
trackSearchResultClick(query: string, options?: ForgeSearchResultClickOptions): Promise<ForgeResult>;
|
|
877
|
+
/**
|
|
878
|
+
* Emits a `raw_attribution` event for apps that resolve their own campaign
|
|
879
|
+
* parameters (the explicit variant; automatic UTM capture is a separate
|
|
880
|
+
* capture family).
|
|
881
|
+
*/
|
|
882
|
+
trackAttribution(params?: ForgeAttributionParams): Promise<ForgeResult>;
|
|
883
|
+
/**
|
|
884
|
+
* Reports a successful login. The kernel stamps the session-level identity
|
|
885
|
+
* (`username`, `userType` — default "Registered") on every subsequent
|
|
886
|
+
* session start/event, defaults unset video metadata identity fields, emits
|
|
887
|
+
* the `login {authStatus:"success"}` session event on the CURRENT session,
|
|
888
|
+
* and then atomically restarts the app session under a fresh sessionRoot
|
|
889
|
+
* when the effective identity changed.
|
|
890
|
+
*/
|
|
891
|
+
loginSuccess(userId: string, options?: ForgeLoginSuccessOptions): Promise<ForgeResult>;
|
|
892
|
+
/** Reports a failed login attempt: `login {authStatus:"failure"}`. */
|
|
893
|
+
loginFailed(options?: ForgeLoginFailedOptions): Promise<ForgeResult>;
|
|
894
|
+
/**
|
|
895
|
+
* Reports a logout. The `logout` event still carries the outgoing user;
|
|
896
|
+
* the kernel then clears the identity to Anonymous and atomically restarts
|
|
897
|
+
* the app session.
|
|
898
|
+
*/
|
|
899
|
+
logout(options?: ForgeLogoutOptions): Promise<ForgeResult>;
|
|
900
|
+
/** Reports a profile creation: `profile_created {profileId, profileType?}`. */
|
|
901
|
+
profileCreated(profileId: string, options?: ForgeProfileOptions): Promise<ForgeResult>;
|
|
902
|
+
/**
|
|
903
|
+
* Reports a profile selection. Stamps `profileId` on the session identity
|
|
904
|
+
* and atomically restarts the app session when the profile changed.
|
|
905
|
+
*/
|
|
906
|
+
profileSelected(profileId: string, options?: ForgeProfileOptions): Promise<ForgeResult>;
|
|
907
|
+
/** Reports a profile deletion: `profile_deleted {profileId}`. */
|
|
908
|
+
profileDeleted(profileId: string): Promise<ForgeResult>;
|
|
909
|
+
setLogLevel(level: string): Promise<ForgeResult>;
|
|
910
|
+
applicationForeground(foreground: boolean): Promise<ForgeResult>;
|
|
911
|
+
trackNetworkEvent(observation: NetworkObservation): Promise<ForgeResult>;
|
|
912
|
+
videoBuilder(): VideoBuilder;
|
|
913
|
+
registerAdapterFromClass<TPlayer, TOptions>(player: TPlayer, AdapterClass: PlayerAdapterClass<TPlayer, TOptions>, options?: TOptions, identifier?: string): Promise<VideoAdapter>;
|
|
914
|
+
registerDefaultAdapter<TPlayer, TOptions>(player: TPlayer, AdapterClass: PlayerAdapterClass<TPlayer, TOptions>, options?: TOptions): Promise<VideoAdapter>;
|
|
915
|
+
registerAdsAdapterFromClass<TPlayer, TOptions>(player: TPlayer, AdapterClass: AdAdapterClass<TPlayer, TOptions>, options?: TOptions, identifier?: string): AdAdapterHost | undefined;
|
|
916
|
+
registerDefaultAdsAdapter<TPlayer, TOptions>(player: TPlayer, AdapterClass: AdAdapterClass<TPlayer, TOptions>, options?: TOptions): AdAdapterHost | undefined;
|
|
917
|
+
removeAdapter(identifier?: string): boolean;
|
|
918
|
+
removeAdsAdapter(identifier?: string): boolean;
|
|
919
|
+
destroy(): Promise<ForgeResult>;
|
|
920
|
+
whenIdle(): Promise<void>;
|
|
921
|
+
private session;
|
|
922
|
+
private identity;
|
|
923
|
+
private registerVideo;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* Copyright (C) NPAW - All Rights Reserved
|
|
928
|
+
*
|
|
929
|
+
* This source code is protected under international copyright law. All rights
|
|
930
|
+
* reserved and protected by the copyright holders.
|
|
931
|
+
* This file is confidential and only available to authorized individuals with the
|
|
932
|
+
* permission of the copyright holders. If you encounter this file and do not have
|
|
933
|
+
* permission, please contact the copyright holders and delete this file.
|
|
934
|
+
*
|
|
935
|
+
*
|
|
936
|
+
* @author: Victor Soto <victor.soto@nicepeopleatwork.com>
|
|
937
|
+
* @description: Public error types for the Forge Web facade.
|
|
938
|
+
*/
|
|
939
|
+
|
|
940
|
+
declare class ForgeCreateError extends Error {
|
|
941
|
+
readonly diagnostic: ForgeDiagnostic;
|
|
942
|
+
constructor(diagnostic: ForgeDiagnostic);
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* Copyright (C) NPAW - All Rights Reserved
|
|
947
|
+
*
|
|
948
|
+
* This source code is protected under international copyright law. All rights
|
|
949
|
+
* reserved and protected by the copyright holders.
|
|
950
|
+
* This file is confidential and only available to authorized individuals with the
|
|
951
|
+
* permission of the copyright holders. If you encounter this file and do not have
|
|
952
|
+
* permission, please contact the copyright holders and delete this file.
|
|
953
|
+
*
|
|
954
|
+
*
|
|
955
|
+
* @author: Victor Soto <victor.soto@nicepeopleatwork.com>
|
|
956
|
+
* @description: Browser HTTP transport for Forge Web host-effect requests.
|
|
957
|
+
*/
|
|
958
|
+
|
|
959
|
+
declare class BrowserForgeTransport implements ForgeTransport {
|
|
960
|
+
send(request: ForgeTransportRequest): Promise<ForgeHttpResponse>;
|
|
961
|
+
}
|
|
962
|
+
declare function requestUrl(request: ForgeTransportRequest): string;
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* Copyright (C) NPAW - All Rights Reserved
|
|
966
|
+
*
|
|
967
|
+
* This source code is protected under international copyright law. All rights
|
|
968
|
+
* reserved and protected by the copyright holders.
|
|
969
|
+
* This file is confidential and only available to authorized individuals with the
|
|
970
|
+
* permission of the copyright holders. If you encounter this file and do not have
|
|
971
|
+
* permission, please contact the copyright holders and delete this file.
|
|
972
|
+
*
|
|
973
|
+
*
|
|
974
|
+
* @author: Victor Soto <victor.soto@nicepeopleatwork.com>
|
|
975
|
+
* @description: Browser storage implementations for Forge Web host effects.
|
|
976
|
+
*/
|
|
977
|
+
|
|
978
|
+
declare class MemoryForgeStorage implements ForgeStorage {
|
|
979
|
+
private readonly values;
|
|
980
|
+
read(key: string): string | null;
|
|
981
|
+
write(key: string, value: string): void;
|
|
982
|
+
delete(key: string): void;
|
|
983
|
+
}
|
|
984
|
+
declare function createBrowserStorage(): ForgeStorage;
|
|
985
|
+
|
|
986
|
+
interface ResolvedCaptureOptions extends ForgeCaptureInstallOptions {
|
|
987
|
+
installer: ForgeCaptureInstaller;
|
|
988
|
+
}
|
|
989
|
+
/**
|
|
990
|
+
* Stack traces are size-capped instead of length-capped like ordinary capture
|
|
991
|
+
* strings so error fidelity survives the default 256-char string limit.
|
|
992
|
+
*/
|
|
993
|
+
declare const STACK_TRACE_MAX_CHARS = 8192;
|
|
994
|
+
declare function resolveCaptureOptions(options?: ForgeCaptureOptions): ResolvedCaptureOptions;
|
|
995
|
+
declare function installCapture(forge: unknown, options?: ForgeCaptureOptions): ForgeCaptureHandle | undefined;
|
|
996
|
+
declare function isNetworkCaptureSuppressed(): boolean;
|
|
997
|
+
declare function withoutNetworkCapture<T>(operation: () => T): T;
|
|
998
|
+
declare function sanitizeCaptureUrl(value: string, privacy?: ForgeCapturePrivacyOptions, baseUrl?: string): string;
|
|
999
|
+
declare function sanitizeCaptureParams(params: ForgeParams, privacy?: ForgeCapturePrivacyOptions): NormalizedParams;
|
|
1000
|
+
declare function sanitizeCaptureString(value: string, privacy?: ForgeCapturePrivacyOptions): string;
|
|
1001
|
+
declare function captureElementAttribution(target: EventTarget | null, privacy?: ForgeCapturePrivacyOptions): NormalizedParams;
|
|
1002
|
+
/**
|
|
1003
|
+
* Normalizes numeric and UUID path segments to `{id}` so screen views carry a
|
|
1004
|
+
* cardinality-bounded route shape, e.g. `/video/123/detail` becomes
|
|
1005
|
+
* `/video/{id}/detail`.
|
|
1006
|
+
*/
|
|
1007
|
+
declare function normalizeRouteTemplate(route: string): string;
|
|
1008
|
+
/**
|
|
1009
|
+
* Sanitizes an error stack for capture: embedded URL-looking substrings run
|
|
1010
|
+
* through the standard capture URL sanitizer (query params drop unless
|
|
1011
|
+
* allowlisted), sensitive token/email patterns are redacted, and the result
|
|
1012
|
+
* is capped at `STACK_TRACE_MAX_CHARS` without splitting a surrogate pair.
|
|
1013
|
+
* Truncated stacks carry a `stackTraceTruncated: "true"` marker.
|
|
1014
|
+
*/
|
|
1015
|
+
declare function sanitizeStackTrace(stack: string, privacy?: ForgeCapturePrivacyOptions): NormalizedParams;
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* Copyright (C) NPAW - All Rights Reserved
|
|
1019
|
+
*
|
|
1020
|
+
* This source code is protected under international copyright law. All rights
|
|
1021
|
+
* reserved and protected by the copyright holders.
|
|
1022
|
+
* This file is confidential and only available to authorized individuals with the
|
|
1023
|
+
* permission of the copyright holders. If you encounter this file and do not have
|
|
1024
|
+
* permission, please contact the copyright holders and delete this file.
|
|
1025
|
+
*
|
|
1026
|
+
*
|
|
1027
|
+
* @author: Victor Soto <victor.soto@nicepeopleatwork.com>
|
|
1028
|
+
* @description: Script-tag configuration parsing and global bootstrap for Forge Web.
|
|
1029
|
+
*/
|
|
1030
|
+
|
|
1031
|
+
interface ScriptTagBootstrapOptions {
|
|
1032
|
+
script?: HTMLScriptElement | null;
|
|
1033
|
+
wasm?: unknown;
|
|
1034
|
+
captureInstaller?: ForgeCaptureInstaller;
|
|
1035
|
+
}
|
|
1036
|
+
interface ParsedScriptTagConfig {
|
|
1037
|
+
autoCreate: boolean;
|
|
1038
|
+
createOptions: ForgeCreateOptions;
|
|
1039
|
+
}
|
|
1040
|
+
declare function parseScriptTagConfig(script: HTMLScriptElement | null): ParsedScriptTagConfig;
|
|
1041
|
+
declare function bootstrapFromScriptTag(options?: ScriptTagBootstrapOptions): Promise<NPAWForge | undefined>;
|
|
1042
|
+
declare function autoBootstrapFromCurrentScript(options?: ScriptTagBootstrapOptions): Promise<NPAWForge | undefined>;
|
|
1043
|
+
declare function getDefaultInstancePromise(): Promise<NPAWForge | undefined> | undefined;
|
|
1044
|
+
declare function getLastBootstrapError(): unknown;
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* Copyright (C) NPAW - All Rights Reserved
|
|
1048
|
+
*
|
|
1049
|
+
* This source code is protected under international copyright law. All rights
|
|
1050
|
+
* reserved and protected by the copyright holders.
|
|
1051
|
+
* This file is confidential and only available to authorized individuals with the
|
|
1052
|
+
* permission of the copyright holders. If you encounter this file and do not have
|
|
1053
|
+
* permission, please contact the copyright holders and delete this file.
|
|
1054
|
+
*
|
|
1055
|
+
*
|
|
1056
|
+
* @author: Victor Soto <victor.soto@nicepeopleatwork.com>
|
|
1057
|
+
* @description: Built-in Forge Web player and ad adapters for browser and smart-TV SDKs.
|
|
1058
|
+
*/
|
|
1059
|
+
|
|
1060
|
+
type EventHandler = (...args: unknown[]) => void;
|
|
1061
|
+
type AdExpectedPattern = Record<string, number[]>;
|
|
1062
|
+
interface PlayerAdapterState {
|
|
1063
|
+
initialized: boolean;
|
|
1064
|
+
started: boolean;
|
|
1065
|
+
joined: boolean;
|
|
1066
|
+
paused: boolean;
|
|
1067
|
+
seeking: boolean;
|
|
1068
|
+
buffering: boolean;
|
|
1069
|
+
}
|
|
1070
|
+
interface WebAdapterCapability {
|
|
1071
|
+
adapterId: string;
|
|
1072
|
+
family: "video" | "ads" | "partner" | "deferred-react-native";
|
|
1073
|
+
oldSourcePath: string;
|
|
1074
|
+
targetExportName: string;
|
|
1075
|
+
phase: string;
|
|
1076
|
+
supportedTargets: readonly string[];
|
|
1077
|
+
sdkDependency: string;
|
|
1078
|
+
constructorInput: string;
|
|
1079
|
+
listenerInstall: string;
|
|
1080
|
+
listenerCleanup: string;
|
|
1081
|
+
initStartJoinStrategy: string;
|
|
1082
|
+
metadataSources: readonly string[];
|
|
1083
|
+
qosSources: readonly string[];
|
|
1084
|
+
eventMappings: readonly string[];
|
|
1085
|
+
adMappings: readonly string[];
|
|
1086
|
+
startGatingSupport: string;
|
|
1087
|
+
metadataUpdateSupport: string;
|
|
1088
|
+
teardownIdempotency: string;
|
|
1089
|
+
multiPlayerSafety: string;
|
|
1090
|
+
migrationNotes: string;
|
|
1091
|
+
unitTests: string;
|
|
1092
|
+
smokeTests: string;
|
|
1093
|
+
}
|
|
1094
|
+
declare class BaseWebPlayerAdapter<TPlayer = unknown, TOptions = unknown> extends PlayerAdapter {
|
|
1095
|
+
protected readonly player: TPlayer;
|
|
1096
|
+
protected readonly options: TOptions | undefined;
|
|
1097
|
+
protected readonly state: PlayerAdapterState;
|
|
1098
|
+
private readonly disposers;
|
|
1099
|
+
private lastWebkitVideoBytes;
|
|
1100
|
+
private monitorTimer;
|
|
1101
|
+
private monitorBuffers;
|
|
1102
|
+
private monitorSeeks;
|
|
1103
|
+
private monitorIntervalMs;
|
|
1104
|
+
private monitorLastTickMs;
|
|
1105
|
+
private monitorLastPlayhead;
|
|
1106
|
+
private readyStateBufferTimer;
|
|
1107
|
+
private readyStateBufferStartedAtMs;
|
|
1108
|
+
private readyStateBufferBeginDispatched;
|
|
1109
|
+
private lastContentPlayhead;
|
|
1110
|
+
constructor(player: TPlayer, options?: TOptions);
|
|
1111
|
+
attach(video: VideoAdapter): void;
|
|
1112
|
+
detach(): void;
|
|
1113
|
+
checkExistsPlayer(): boolean;
|
|
1114
|
+
getVersion(): string | undefined;
|
|
1115
|
+
protected registerListeners(): void;
|
|
1116
|
+
protected unregisterListeners(): void;
|
|
1117
|
+
protected addCleanup(dispose: () => void): void;
|
|
1118
|
+
protected listen(target: unknown, event: string, handler: EventHandler): void;
|
|
1119
|
+
protected fireInit(extra?: ContentMetadata): void;
|
|
1120
|
+
protected fireStart(extra?: ContentMetadata): void;
|
|
1121
|
+
protected fireJoin(extra?: ContentMetadata): void;
|
|
1122
|
+
protected firePause(extra?: ContentMetadata): void;
|
|
1123
|
+
protected fireResume(extra?: ContentMetadata): void;
|
|
1124
|
+
protected fireSeekBegin(extra?: ContentMetadata, convertFromBuffer?: boolean): void;
|
|
1125
|
+
protected fireSeekEnd(extra?: ContentMetadata): void;
|
|
1126
|
+
protected cancelSeek(): void;
|
|
1127
|
+
protected fireBufferBegin(extra?: ContentMetadata, convertFromSeek?: boolean, stateProperty?: boolean): void;
|
|
1128
|
+
protected fireBufferEnd(extra?: ContentMetadata): void;
|
|
1129
|
+
protected fireStop(extra?: ContentMetadata): void;
|
|
1130
|
+
protected fireStopUnlessCsaiPostroll(extra?: ContentMetadata): void;
|
|
1131
|
+
protected fireError(errorCode: unknown, errorMessage?: unknown, extra?: ContentMetadata): void;
|
|
1132
|
+
protected fireFatalError(errorCode: unknown, errorMessage?: unknown, extra?: ContentMetadata): void;
|
|
1133
|
+
protected metadata(extra?: ContentMetadata): ContentMetadata;
|
|
1134
|
+
protected qos(): QosSnapshot | undefined;
|
|
1135
|
+
protected dispatch(result: Promise<ForgeResult> | undefined): void;
|
|
1136
|
+
protected resetState(): void;
|
|
1137
|
+
protected oldContentPlayhead(value: unknown, freezeWhen?: "break" | "ad"): number | undefined;
|
|
1138
|
+
protected monitorPlayhead(monitorBuffers: boolean, monitorSeeks: boolean, intervalMs?: number): void;
|
|
1139
|
+
protected skipNextPlayheadMonitorTick(): void;
|
|
1140
|
+
protected checkReadyState(readyState: unknown): void;
|
|
1141
|
+
protected hasReadyStatePlaybackEvidence(): boolean;
|
|
1142
|
+
private startPlayheadMonitor;
|
|
1143
|
+
private stopPlayheadMonitor;
|
|
1144
|
+
private progressPlayheadMonitor;
|
|
1145
|
+
private isAnomalousMonitorJump;
|
|
1146
|
+
private canUsePlayheadMonitor;
|
|
1147
|
+
protected optionBoolean(key: string, defaultValue: boolean): boolean;
|
|
1148
|
+
private flushReadyStateBufferBegin;
|
|
1149
|
+
private discardFalseReadyStateBuffer;
|
|
1150
|
+
private clearReadyStateBufferTimer;
|
|
1151
|
+
protected getPlayerName(): string | undefined;
|
|
1152
|
+
protected getPlayerVersion(): string | undefined;
|
|
1153
|
+
protected getResource(): string | undefined;
|
|
1154
|
+
protected getTitle(): string | undefined;
|
|
1155
|
+
protected getProgram(): string | undefined;
|
|
1156
|
+
protected getContentId(): string | undefined;
|
|
1157
|
+
protected getContentLanguage(): string | undefined;
|
|
1158
|
+
protected getSubtitles(): string | undefined;
|
|
1159
|
+
protected getPlayhead(): number | undefined;
|
|
1160
|
+
protected getDuration(): number | undefined;
|
|
1161
|
+
protected getSegmentDuration(): number | undefined;
|
|
1162
|
+
protected getBitrate(): number | undefined;
|
|
1163
|
+
protected getThroughput(): number | undefined;
|
|
1164
|
+
protected getFramesPerSecond(): number | undefined;
|
|
1165
|
+
protected getLatency(): number | undefined;
|
|
1166
|
+
protected getPlayrate(): number | undefined;
|
|
1167
|
+
protected getDroppedFrames(): number | undefined;
|
|
1168
|
+
protected getTotalBytes(): number | undefined;
|
|
1169
|
+
protected getPacketLoss(): number | undefined;
|
|
1170
|
+
protected getPacketSent(): number | undefined;
|
|
1171
|
+
protected getDroppedPackets(): number | undefined;
|
|
1172
|
+
protected getLostPackets(): number | undefined;
|
|
1173
|
+
protected getMulticastAffectionTimeMs(): number | undefined;
|
|
1174
|
+
protected getRendition(): string | undefined;
|
|
1175
|
+
protected getIsLive(): boolean | undefined;
|
|
1176
|
+
protected getVideoCodec(): string | undefined;
|
|
1177
|
+
protected getAudioCodec(): string | undefined;
|
|
1178
|
+
protected getCodecProfile(): string | undefined;
|
|
1179
|
+
protected getContainerFormat(): string | undefined;
|
|
1180
|
+
protected getCustomDimensions(): Record<string, unknown> | undefined;
|
|
1181
|
+
protected getExtraparam(index: number): string | undefined;
|
|
1182
|
+
protected getExtraparam1(): string | undefined;
|
|
1183
|
+
protected getExtraparam2(): string | undefined;
|
|
1184
|
+
protected getExtraparam3(): string | undefined;
|
|
1185
|
+
protected getExtraparam4(): string | undefined;
|
|
1186
|
+
protected getExtraparam5(): string | undefined;
|
|
1187
|
+
protected getExtraparam6(): string | undefined;
|
|
1188
|
+
protected getExtraparam7(): string | undefined;
|
|
1189
|
+
protected getExtraparam8(): string | undefined;
|
|
1190
|
+
protected getExtraparam9(): string | undefined;
|
|
1191
|
+
protected getExtraparam10(): string | undefined;
|
|
1192
|
+
protected getExtraparam11(): string | undefined;
|
|
1193
|
+
protected getExtraparam12(): string | undefined;
|
|
1194
|
+
protected getExtraparam13(): string | undefined;
|
|
1195
|
+
protected getExtraparam14(): string | undefined;
|
|
1196
|
+
protected getExtraparam15(): string | undefined;
|
|
1197
|
+
protected getExtraparam16(): string | undefined;
|
|
1198
|
+
protected getExtraparam17(): string | undefined;
|
|
1199
|
+
protected getExtraparam18(): string | undefined;
|
|
1200
|
+
protected getExtraparam19(): string | undefined;
|
|
1201
|
+
protected getExtraparam20(): string | undefined;
|
|
1202
|
+
protected getVideoMetrics(): Record<string, unknown> | undefined;
|
|
1203
|
+
protected getMetrics(): Record<string, unknown> | undefined;
|
|
1204
|
+
protected webkitVideoDecodedByteBitrate(source: unknown): number | undefined;
|
|
1205
|
+
protected fastDataPingTimeSeconds(): number;
|
|
1206
|
+
}
|
|
1207
|
+
declare class Html5Adapter<TPlayer = HTMLMediaElement> extends BaseWebPlayerAdapter<TPlayer> {
|
|
1208
|
+
private lastResource;
|
|
1209
|
+
getVersion(): string;
|
|
1210
|
+
protected registerListeners(): void;
|
|
1211
|
+
protected getPlayerName(): string;
|
|
1212
|
+
protected getResource(): string | undefined;
|
|
1213
|
+
protected getPlayhead(): number | undefined;
|
|
1214
|
+
protected getDuration(): number | undefined;
|
|
1215
|
+
protected getIsLive(): boolean | undefined;
|
|
1216
|
+
protected getPlayrate(): number | undefined;
|
|
1217
|
+
protected getDroppedFrames(): number | undefined;
|
|
1218
|
+
private loadStartListener;
|
|
1219
|
+
private playListener;
|
|
1220
|
+
private timeupdateListener;
|
|
1221
|
+
private playingListener;
|
|
1222
|
+
private errorListener;
|
|
1223
|
+
}
|
|
1224
|
+
declare class AVPlayAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer> {
|
|
1225
|
+
private seekEndTimer;
|
|
1226
|
+
getVersion(): string;
|
|
1227
|
+
protected registerListeners(): void;
|
|
1228
|
+
protected getPlayerName(): string;
|
|
1229
|
+
protected getPlayerVersion(): string | undefined;
|
|
1230
|
+
protected getPlayhead(): number | undefined;
|
|
1231
|
+
protected getDuration(): number | undefined;
|
|
1232
|
+
protected getIsLive(): boolean | undefined;
|
|
1233
|
+
protected getPlayrate(): number;
|
|
1234
|
+
private wrapMethod;
|
|
1235
|
+
}
|
|
1236
|
+
declare class HlsjsAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer> {
|
|
1237
|
+
private media;
|
|
1238
|
+
private registeredMedia;
|
|
1239
|
+
private lastRendition;
|
|
1240
|
+
private startedOnce;
|
|
1241
|
+
getVersion(): string;
|
|
1242
|
+
detach(): void;
|
|
1243
|
+
protected registerListeners(): void;
|
|
1244
|
+
protected getPlayerName(): string;
|
|
1245
|
+
protected getPlayerVersion(): string | undefined;
|
|
1246
|
+
protected getResource(): string | undefined;
|
|
1247
|
+
protected getPlayhead(): number | undefined;
|
|
1248
|
+
protected getDuration(): number | undefined;
|
|
1249
|
+
protected getBitrate(): number | undefined;
|
|
1250
|
+
protected getRendition(): string | undefined;
|
|
1251
|
+
protected getIsLive(): boolean | undefined;
|
|
1252
|
+
protected getLatency(): number | undefined;
|
|
1253
|
+
protected getPlayrate(): number | undefined;
|
|
1254
|
+
protected getDroppedFrames(): number | undefined;
|
|
1255
|
+
private registerMedia;
|
|
1256
|
+
private timeupdateListener;
|
|
1257
|
+
private hlsErrorListener;
|
|
1258
|
+
private detectQualityChange;
|
|
1259
|
+
private currentLevel;
|
|
1260
|
+
private levelAt;
|
|
1261
|
+
}
|
|
1262
|
+
declare class ShakaAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer> {
|
|
1263
|
+
private media;
|
|
1264
|
+
private initialPlayhead;
|
|
1265
|
+
private seekDelayTimer;
|
|
1266
|
+
private inSeekSequence;
|
|
1267
|
+
private bufferStartMs;
|
|
1268
|
+
private seekStartMs;
|
|
1269
|
+
private accumulatedSeekBufferMs;
|
|
1270
|
+
private segmentBytes;
|
|
1271
|
+
private networkingEngine;
|
|
1272
|
+
private responseFilter;
|
|
1273
|
+
getVersion(): string;
|
|
1274
|
+
protected unregisterListeners(): void;
|
|
1275
|
+
protected registerListeners(): void;
|
|
1276
|
+
protected fireStop(extra?: ContentMetadata): void;
|
|
1277
|
+
protected getPlayerName(): string;
|
|
1278
|
+
protected getPlayerVersion(): string | undefined;
|
|
1279
|
+
protected getResource(): string | undefined;
|
|
1280
|
+
protected getTitle(): string | undefined;
|
|
1281
|
+
protected getPlayhead(): number | undefined;
|
|
1282
|
+
protected getDuration(): number | undefined;
|
|
1283
|
+
protected getBitrate(): number | undefined;
|
|
1284
|
+
protected getThroughput(): number | undefined;
|
|
1285
|
+
protected getFramesPerSecond(): number | undefined;
|
|
1286
|
+
protected getLatency(): number | undefined;
|
|
1287
|
+
protected getPlayrate(): number | undefined;
|
|
1288
|
+
protected getDroppedFrames(): number | undefined;
|
|
1289
|
+
protected getTotalBytes(): number | undefined;
|
|
1290
|
+
protected getRendition(): string | undefined;
|
|
1291
|
+
protected getIsLive(): boolean | undefined;
|
|
1292
|
+
private timeupdateListener;
|
|
1293
|
+
private registerResponseFilter;
|
|
1294
|
+
private networkResponseFilter;
|
|
1295
|
+
private bufferingListener;
|
|
1296
|
+
private callStart;
|
|
1297
|
+
private initialPlayheadChanged;
|
|
1298
|
+
private seekingListener;
|
|
1299
|
+
private seekedListener;
|
|
1300
|
+
private finishDelayedSeek;
|
|
1301
|
+
private clearSeekDelay;
|
|
1302
|
+
private resetSeekBufferState;
|
|
1303
|
+
private isPlayerBuffering;
|
|
1304
|
+
private errorListener;
|
|
1305
|
+
}
|
|
1306
|
+
declare class DashJSAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer, {
|
|
1307
|
+
enableLegacyBufferBehaviour?: boolean;
|
|
1308
|
+
}> {
|
|
1309
|
+
private live;
|
|
1310
|
+
private throughput;
|
|
1311
|
+
private emptyVideoBuffer;
|
|
1312
|
+
private lastDataValue;
|
|
1313
|
+
getVersion(): string;
|
|
1314
|
+
protected registerListeners(): void;
|
|
1315
|
+
protected unregisterListeners(): void;
|
|
1316
|
+
protected getPlayerName(): string;
|
|
1317
|
+
protected getPlayerVersion(): string | undefined;
|
|
1318
|
+
protected getResource(): string | undefined;
|
|
1319
|
+
protected getPlayhead(): number | undefined;
|
|
1320
|
+
protected getDuration(): number | undefined;
|
|
1321
|
+
protected getBitrate(): number | undefined;
|
|
1322
|
+
protected getThroughput(): number | undefined;
|
|
1323
|
+
protected getLatency(): number | undefined;
|
|
1324
|
+
protected getPlayrate(): number | undefined;
|
|
1325
|
+
protected getDroppedFrames(): number | undefined;
|
|
1326
|
+
protected getRendition(): string | undefined;
|
|
1327
|
+
protected getIsLive(): boolean;
|
|
1328
|
+
private playbackWaitingListener;
|
|
1329
|
+
private playbackPlayingListener;
|
|
1330
|
+
private processBufferEmpty;
|
|
1331
|
+
private processBufferLoaded;
|
|
1332
|
+
private currentRepresentation;
|
|
1333
|
+
private legacyRequestThroughput;
|
|
1334
|
+
private legacyP2PTrafficThroughput;
|
|
1335
|
+
private legacyDashTraffic;
|
|
1336
|
+
private fireDashError;
|
|
1337
|
+
}
|
|
1338
|
+
type VideoJsAdapterOptions = Record<string, unknown> & {
|
|
1339
|
+
usedTech?: string;
|
|
1340
|
+
adapterProperties?: {
|
|
1341
|
+
usedTech?: string;
|
|
1342
|
+
};
|
|
1343
|
+
adapters?: {
|
|
1344
|
+
properties?: {
|
|
1345
|
+
usedTech?: string;
|
|
1346
|
+
};
|
|
1347
|
+
};
|
|
1348
|
+
};
|
|
1349
|
+
declare class VideoJsAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer, VideoJsAdapterOptions> {
|
|
1350
|
+
private joinPolling;
|
|
1351
|
+
private lastJoinPlayhead;
|
|
1352
|
+
protected lastSeekPlayhead: number | false | undefined;
|
|
1353
|
+
private accumulatedBytes;
|
|
1354
|
+
getVersion(): string;
|
|
1355
|
+
protected unregisterListeners(): void;
|
|
1356
|
+
protected registerListeners(): void;
|
|
1357
|
+
protected fireJoin(extra?: ContentMetadata): void;
|
|
1358
|
+
protected fireStop(extra?: ContentMetadata): void;
|
|
1359
|
+
protected timeupdateListener(): void;
|
|
1360
|
+
protected seekedListener(): void;
|
|
1361
|
+
protected getPlayerName(): string;
|
|
1362
|
+
protected getPlayerVersion(): string | undefined;
|
|
1363
|
+
protected getResource(): string | undefined;
|
|
1364
|
+
protected getTitle(): string | undefined;
|
|
1365
|
+
protected getContentId(): string | undefined;
|
|
1366
|
+
protected getSubtitles(): string | undefined;
|
|
1367
|
+
protected getPlayhead(): number | undefined;
|
|
1368
|
+
protected getDuration(): number | undefined;
|
|
1369
|
+
protected getBitrate(): number | undefined;
|
|
1370
|
+
protected getPlayrate(): number | undefined;
|
|
1371
|
+
protected getTotalBytes(): number | undefined;
|
|
1372
|
+
protected getRendition(): string | undefined;
|
|
1373
|
+
protected getIsLive(): boolean | undefined;
|
|
1374
|
+
private isInAds;
|
|
1375
|
+
private startJoinPolling;
|
|
1376
|
+
private stopJoinPolling;
|
|
1377
|
+
private jointimePolling;
|
|
1378
|
+
}
|
|
1379
|
+
declare class BitmovinAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer> {
|
|
1380
|
+
private lastPlayhead;
|
|
1381
|
+
private lastDuration;
|
|
1382
|
+
private seekStartPosition;
|
|
1383
|
+
private seekStartAtMs;
|
|
1384
|
+
private stallTimer;
|
|
1385
|
+
getVersion(): string;
|
|
1386
|
+
protected registerListeners(): void;
|
|
1387
|
+
protected getPlayerName(): string;
|
|
1388
|
+
protected getPlayerVersion(): string | undefined;
|
|
1389
|
+
protected getResource(): string | undefined;
|
|
1390
|
+
protected getTitle(): string | undefined;
|
|
1391
|
+
protected getPlayhead(): number | undefined;
|
|
1392
|
+
protected getDuration(): number | undefined;
|
|
1393
|
+
protected getBitrate(): number | undefined;
|
|
1394
|
+
protected getPlayrate(): number | undefined;
|
|
1395
|
+
protected getDroppedFrames(): number | undefined;
|
|
1396
|
+
protected getRendition(): string | undefined;
|
|
1397
|
+
protected getIsLive(): boolean | undefined;
|
|
1398
|
+
private bitmovinSeekBegin;
|
|
1399
|
+
private bitmovinSeekEnd;
|
|
1400
|
+
private bitmovinTimeChanged;
|
|
1401
|
+
private bitmovinStallStarted;
|
|
1402
|
+
private bitmovinStallEnded;
|
|
1403
|
+
private clearStallTimer;
|
|
1404
|
+
}
|
|
1405
|
+
declare class TheoplayerAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer> {
|
|
1406
|
+
private lastTheoContentPlayhead;
|
|
1407
|
+
private lastContentDuration;
|
|
1408
|
+
getVersion(): string;
|
|
1409
|
+
protected registerListeners(): void;
|
|
1410
|
+
protected getPlayerName(): string;
|
|
1411
|
+
protected getPlayerVersion(): string | undefined;
|
|
1412
|
+
protected getResource(): string | undefined;
|
|
1413
|
+
protected getPlayhead(): number | undefined;
|
|
1414
|
+
protected getDuration(): number | undefined;
|
|
1415
|
+
protected getContentLanguage(): string | undefined;
|
|
1416
|
+
protected getBitrate(): number | undefined;
|
|
1417
|
+
protected getThroughput(): number | undefined;
|
|
1418
|
+
protected getLatency(): number | undefined;
|
|
1419
|
+
protected getPlayrate(): number | undefined;
|
|
1420
|
+
protected getDroppedFrames(): number | undefined;
|
|
1421
|
+
protected getRendition(): string | undefined;
|
|
1422
|
+
protected getIsLive(): boolean | undefined;
|
|
1423
|
+
private activeQuality;
|
|
1424
|
+
private isTheoAdPlaying;
|
|
1425
|
+
}
|
|
1426
|
+
declare class AkamaiAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer> {
|
|
1427
|
+
private currentQuality;
|
|
1428
|
+
private live;
|
|
1429
|
+
getVersion(): string;
|
|
1430
|
+
protected registerListeners(): void;
|
|
1431
|
+
protected getPlayerName(): string;
|
|
1432
|
+
protected getPlayerVersion(): string | undefined;
|
|
1433
|
+
protected getResource(): string | undefined;
|
|
1434
|
+
protected getPlayhead(): number | undefined;
|
|
1435
|
+
protected getDuration(): number | undefined;
|
|
1436
|
+
protected getBitrate(): number | undefined;
|
|
1437
|
+
protected getRendition(): string | undefined;
|
|
1438
|
+
protected getFramesPerSecond(): number | undefined;
|
|
1439
|
+
protected getPlayrate(): number | undefined;
|
|
1440
|
+
protected getDroppedFrames(): number | undefined;
|
|
1441
|
+
protected getIsLive(): boolean | undefined;
|
|
1442
|
+
private loadStartListener;
|
|
1443
|
+
private playingListener;
|
|
1444
|
+
private bufferingChangeListener;
|
|
1445
|
+
private timeupdateListener;
|
|
1446
|
+
private waitingListener;
|
|
1447
|
+
private errorListener;
|
|
1448
|
+
private qualityListener;
|
|
1449
|
+
private quality;
|
|
1450
|
+
private updateQualityInfo;
|
|
1451
|
+
private tryGetInitialQuality;
|
|
1452
|
+
private isPlayerActuallyPlaying;
|
|
1453
|
+
}
|
|
1454
|
+
declare class BrightcoveAdapter<TPlayer = unknown> extends VideoJsAdapter<TPlayer> {
|
|
1455
|
+
getVersion(): string;
|
|
1456
|
+
protected getPlayerName(): string;
|
|
1457
|
+
protected getPlayerVersion(): string | undefined;
|
|
1458
|
+
protected getResource(): string | undefined;
|
|
1459
|
+
protected getTitle(): string | undefined;
|
|
1460
|
+
protected getDuration(): number | undefined;
|
|
1461
|
+
protected seekedListener(): void;
|
|
1462
|
+
protected getBitrate(): number | undefined;
|
|
1463
|
+
protected getRendition(): string | undefined;
|
|
1464
|
+
}
|
|
1465
|
+
declare class ChromecastAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer> {
|
|
1466
|
+
private castPlayer;
|
|
1467
|
+
constructor(player: TPlayer, options?: {
|
|
1468
|
+
castPlayer?: unknown;
|
|
1469
|
+
});
|
|
1470
|
+
getVersion(): string;
|
|
1471
|
+
protected registerListeners(): void;
|
|
1472
|
+
protected getPlayerName(): string;
|
|
1473
|
+
protected getPlayerVersion(): string | undefined;
|
|
1474
|
+
protected getResource(): string | undefined;
|
|
1475
|
+
protected getPlayhead(): number | undefined;
|
|
1476
|
+
protected getDuration(): number | undefined;
|
|
1477
|
+
protected getBitrate(): number | undefined;
|
|
1478
|
+
protected getRendition(): string | undefined;
|
|
1479
|
+
protected getPlayrate(): number | undefined;
|
|
1480
|
+
protected getDroppedFrames(): number | undefined;
|
|
1481
|
+
private playListener;
|
|
1482
|
+
private playingListener;
|
|
1483
|
+
}
|
|
1484
|
+
declare class ChromecastCafAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer> {
|
|
1485
|
+
private bitrate;
|
|
1486
|
+
private throughput;
|
|
1487
|
+
private mediaElement;
|
|
1488
|
+
private lastJoinPlayhead;
|
|
1489
|
+
private decodedByteCount;
|
|
1490
|
+
private decodedThroughputCache;
|
|
1491
|
+
private adClipActive;
|
|
1492
|
+
getVersion(): string;
|
|
1493
|
+
protected registerListeners(): void;
|
|
1494
|
+
protected getPlayerName(): string;
|
|
1495
|
+
protected getPlayerVersion(): string | undefined;
|
|
1496
|
+
protected getResource(): string | undefined;
|
|
1497
|
+
protected getTitle(): string | undefined;
|
|
1498
|
+
protected getPlayhead(): number | undefined;
|
|
1499
|
+
protected getDuration(): number | undefined;
|
|
1500
|
+
protected getBitrate(): number | undefined;
|
|
1501
|
+
protected getPlayrate(): number | undefined;
|
|
1502
|
+
protected getDroppedFrames(): number | undefined;
|
|
1503
|
+
protected getRendition(): string | undefined;
|
|
1504
|
+
protected getIsLive(): boolean | undefined;
|
|
1505
|
+
protected getVideoCodec(): string | undefined;
|
|
1506
|
+
protected getAudioCodec(): string | undefined;
|
|
1507
|
+
protected getThroughput(): number | undefined;
|
|
1508
|
+
private decodedByteThroughput;
|
|
1509
|
+
private cafErrorListener;
|
|
1510
|
+
private firePauseIfNotBuffering;
|
|
1511
|
+
}
|
|
1512
|
+
declare class FlvjsAdapter<TPlayer = HTMLMediaElement> extends Html5Adapter<TPlayer> {
|
|
1513
|
+
getVersion(): string;
|
|
1514
|
+
protected registerListeners(): void;
|
|
1515
|
+
protected getPlayerName(): string;
|
|
1516
|
+
}
|
|
1517
|
+
declare class HbbTVAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer> {
|
|
1518
|
+
private previousPlayStateHandler;
|
|
1519
|
+
private previousVideoErrorHandler;
|
|
1520
|
+
private bufferPlayhead;
|
|
1521
|
+
getVersion(): string;
|
|
1522
|
+
protected registerListeners(): void;
|
|
1523
|
+
protected getPlayerName(): string;
|
|
1524
|
+
protected getResource(): string | undefined;
|
|
1525
|
+
protected getPlayhead(): number | undefined;
|
|
1526
|
+
protected getDuration(): number | undefined;
|
|
1527
|
+
private playStateChangeListener;
|
|
1528
|
+
private errorListener;
|
|
1529
|
+
}
|
|
1530
|
+
declare class JwplayerAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer> {
|
|
1531
|
+
private title;
|
|
1532
|
+
private duration;
|
|
1533
|
+
private previousPosition;
|
|
1534
|
+
private fatalErrored;
|
|
1535
|
+
private live;
|
|
1536
|
+
getVersion(): string;
|
|
1537
|
+
protected registerListeners(): void;
|
|
1538
|
+
protected getPlayerName(): string;
|
|
1539
|
+
protected getPlayerVersion(): string | undefined;
|
|
1540
|
+
protected getResource(): string | undefined;
|
|
1541
|
+
protected getTitle(): string | undefined;
|
|
1542
|
+
protected getPlayhead(): number | undefined;
|
|
1543
|
+
protected getDuration(): number | undefined;
|
|
1544
|
+
protected getBitrate(): number | undefined;
|
|
1545
|
+
protected getPlayrate(): number | undefined;
|
|
1546
|
+
protected getRendition(): string | undefined;
|
|
1547
|
+
protected getIsLive(): boolean | undefined;
|
|
1548
|
+
private beforePlayListener;
|
|
1549
|
+
private playlistItemListener;
|
|
1550
|
+
private timeListener;
|
|
1551
|
+
private errorListener;
|
|
1552
|
+
private applyJwOptions;
|
|
1553
|
+
}
|
|
1554
|
+
declare class MediaKindMkplayerAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer> {
|
|
1555
|
+
private lastDuration;
|
|
1556
|
+
private lastPlayhead;
|
|
1557
|
+
private lastResource;
|
|
1558
|
+
getVersion(): string;
|
|
1559
|
+
protected registerListeners(): void;
|
|
1560
|
+
protected getPlayerName(): string;
|
|
1561
|
+
protected getPlayerVersion(): string | undefined;
|
|
1562
|
+
protected getResource(): string | undefined;
|
|
1563
|
+
protected getTitle(): string | undefined;
|
|
1564
|
+
protected getPlayhead(): number | undefined;
|
|
1565
|
+
protected getDuration(): number | undefined;
|
|
1566
|
+
protected getBitrate(): number | undefined;
|
|
1567
|
+
protected getFramesPerSecond(): number | undefined;
|
|
1568
|
+
protected getPlayrate(): number | undefined;
|
|
1569
|
+
protected getDroppedFrames(): number | undefined;
|
|
1570
|
+
protected getRendition(): string | undefined;
|
|
1571
|
+
protected getIsLive(): boolean | undefined;
|
|
1572
|
+
protected getVideoCodec(): string | undefined;
|
|
1573
|
+
protected getAudioCodec(): string | undefined;
|
|
1574
|
+
private timeChangedListener;
|
|
1575
|
+
private sourceLoadedListener;
|
|
1576
|
+
}
|
|
1577
|
+
declare class MediaKindWmcAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer> {
|
|
1578
|
+
private wmcManager;
|
|
1579
|
+
private lastSeenBitrate;
|
|
1580
|
+
private lastDuration;
|
|
1581
|
+
private lastPlayhead;
|
|
1582
|
+
private inAdBreak;
|
|
1583
|
+
private videoCodec;
|
|
1584
|
+
private audioCodec;
|
|
1585
|
+
private fps;
|
|
1586
|
+
private droppedFrames;
|
|
1587
|
+
private resolution;
|
|
1588
|
+
getVersion(): string;
|
|
1589
|
+
protected registerListeners(): void;
|
|
1590
|
+
registerWmcManager(wmcManager: unknown): void;
|
|
1591
|
+
protected getPlayerName(): string;
|
|
1592
|
+
protected getPlayerVersion(): string | undefined;
|
|
1593
|
+
protected getResource(): string | undefined;
|
|
1594
|
+
protected getPlayhead(): number | undefined;
|
|
1595
|
+
protected getDuration(): number | undefined;
|
|
1596
|
+
protected getBitrate(): number | undefined;
|
|
1597
|
+
protected getFramesPerSecond(): number | undefined;
|
|
1598
|
+
protected getPlayrate(): number | undefined;
|
|
1599
|
+
protected getDroppedFrames(): number | undefined;
|
|
1600
|
+
protected getRendition(): string | undefined;
|
|
1601
|
+
protected getIsLive(): boolean | undefined;
|
|
1602
|
+
protected getProgram(): string | undefined;
|
|
1603
|
+
protected getVideoCodec(): string | undefined;
|
|
1604
|
+
protected getAudioCodec(): string | undefined;
|
|
1605
|
+
private stateChangedListener;
|
|
1606
|
+
private metricsUpdateListener;
|
|
1607
|
+
private positionChangedListener;
|
|
1608
|
+
private errorListener;
|
|
1609
|
+
}
|
|
1610
|
+
declare class NagraAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer> {
|
|
1611
|
+
private lastResource;
|
|
1612
|
+
getVersion(): string;
|
|
1613
|
+
protected registerListeners(): void;
|
|
1614
|
+
protected getPlayerName(): string;
|
|
1615
|
+
protected getPlayerVersion(): string | undefined;
|
|
1616
|
+
protected getResource(): string | undefined;
|
|
1617
|
+
protected getPlayhead(): number | undefined;
|
|
1618
|
+
protected getDuration(): number | undefined;
|
|
1619
|
+
protected getBitrate(): number | undefined;
|
|
1620
|
+
protected getThroughput(): number | undefined;
|
|
1621
|
+
protected getFramesPerSecond(): number | undefined;
|
|
1622
|
+
protected getPlayrate(): number | undefined;
|
|
1623
|
+
protected getDroppedFrames(): number | undefined;
|
|
1624
|
+
protected getRendition(): string | undefined;
|
|
1625
|
+
protected getIsLive(): boolean | undefined;
|
|
1626
|
+
}
|
|
1627
|
+
declare class NanoPlayerAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer> {
|
|
1628
|
+
private originalSetup;
|
|
1629
|
+
private playhead;
|
|
1630
|
+
private bitrate;
|
|
1631
|
+
private framerate;
|
|
1632
|
+
private droppedFrames;
|
|
1633
|
+
private throughput;
|
|
1634
|
+
private playrate;
|
|
1635
|
+
private latency;
|
|
1636
|
+
private width;
|
|
1637
|
+
private height;
|
|
1638
|
+
private source;
|
|
1639
|
+
getVersion(): string;
|
|
1640
|
+
protected registerListeners(): void;
|
|
1641
|
+
protected getPlayerName(): string;
|
|
1642
|
+
protected getPlayerVersion(): string | undefined;
|
|
1643
|
+
protected getTitle(): string | undefined;
|
|
1644
|
+
protected getResource(): string | undefined;
|
|
1645
|
+
protected getPlayhead(): number | undefined;
|
|
1646
|
+
protected getDuration(): number | undefined;
|
|
1647
|
+
protected getBitrate(): number | undefined;
|
|
1648
|
+
protected getThroughput(): number | undefined;
|
|
1649
|
+
protected getFramesPerSecond(): number | undefined;
|
|
1650
|
+
protected getLatency(): number | undefined;
|
|
1651
|
+
protected getPlayrate(): number | undefined;
|
|
1652
|
+
protected getDroppedFrames(): number | undefined;
|
|
1653
|
+
protected getRendition(): string | undefined;
|
|
1654
|
+
protected getIsLive(): boolean;
|
|
1655
|
+
fireEvent(eventName: string, eventData?: unknown): void;
|
|
1656
|
+
private wrapNanoEvent;
|
|
1657
|
+
private statsListener;
|
|
1658
|
+
private streamInfoListener;
|
|
1659
|
+
private nanoErrorListener;
|
|
1660
|
+
private nanoConfig;
|
|
1661
|
+
}
|
|
1662
|
+
declare class TCPlayerAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer> {
|
|
1663
|
+
private lastResource;
|
|
1664
|
+
getVersion(): string;
|
|
1665
|
+
protected registerListeners(): void;
|
|
1666
|
+
protected getPlayerName(): string;
|
|
1667
|
+
protected getResource(): string | undefined;
|
|
1668
|
+
protected getPlayhead(): number | undefined;
|
|
1669
|
+
protected getDuration(): number | undefined;
|
|
1670
|
+
protected getPlayrate(): number | undefined;
|
|
1671
|
+
protected getDroppedFrames(): number | undefined;
|
|
1672
|
+
protected getIsLive(): boolean | undefined;
|
|
1673
|
+
}
|
|
1674
|
+
declare class TritonAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer> {
|
|
1675
|
+
private originalPlay;
|
|
1676
|
+
private originalStop;
|
|
1677
|
+
private mediaElement;
|
|
1678
|
+
private live;
|
|
1679
|
+
private currentTrackTitle;
|
|
1680
|
+
private currentArtist;
|
|
1681
|
+
private lastWebkitAudioBytes;
|
|
1682
|
+
getVersion(): string;
|
|
1683
|
+
protected registerListeners(): void;
|
|
1684
|
+
protected getPlayerName(): string;
|
|
1685
|
+
protected getPlayerVersion(): string;
|
|
1686
|
+
protected getResource(): string | undefined;
|
|
1687
|
+
protected getTitle(): string | undefined;
|
|
1688
|
+
protected getProgram(): string | undefined;
|
|
1689
|
+
protected getPlayhead(): number | undefined;
|
|
1690
|
+
protected getDuration(): number | undefined;
|
|
1691
|
+
protected getBitrate(): number | undefined;
|
|
1692
|
+
protected getPlayrate(): number | undefined;
|
|
1693
|
+
protected getIsLive(): boolean | undefined;
|
|
1694
|
+
private wrapMethod;
|
|
1695
|
+
private playbackStatusListener;
|
|
1696
|
+
private errorListener;
|
|
1697
|
+
private attachMediaElement;
|
|
1698
|
+
}
|
|
1699
|
+
declare class ViaccessOrcaAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer> {
|
|
1700
|
+
getVersion(): string;
|
|
1701
|
+
protected registerListeners(): void;
|
|
1702
|
+
protected getPlayerName(): string;
|
|
1703
|
+
protected getPlayerVersion(): string | undefined;
|
|
1704
|
+
protected getResource(): string | undefined;
|
|
1705
|
+
protected getTitle(): string | undefined;
|
|
1706
|
+
protected getPlayhead(): number | undefined;
|
|
1707
|
+
protected getDuration(): number | undefined;
|
|
1708
|
+
protected getBitrate(): number | undefined;
|
|
1709
|
+
protected getPlayrate(): number | undefined;
|
|
1710
|
+
protected getDroppedFrames(): number | undefined;
|
|
1711
|
+
protected getRendition(): string | undefined;
|
|
1712
|
+
protected getIsLive(): boolean | undefined;
|
|
1713
|
+
private currentQuality;
|
|
1714
|
+
}
|
|
1715
|
+
declare class VisualOnAdapter<TPlayer = unknown> extends BaseWebPlayerAdapter<TPlayer> {
|
|
1716
|
+
private width;
|
|
1717
|
+
private height;
|
|
1718
|
+
private targetBitrate;
|
|
1719
|
+
getVersion(): string;
|
|
1720
|
+
protected registerListeners(): void;
|
|
1721
|
+
protected getPlayerName(): string;
|
|
1722
|
+
protected getPlayerVersion(): string | undefined;
|
|
1723
|
+
protected getResource(): string | undefined;
|
|
1724
|
+
protected getPlayhead(): number | undefined;
|
|
1725
|
+
protected getDuration(): number | undefined;
|
|
1726
|
+
protected getBitrate(): number | undefined;
|
|
1727
|
+
protected getFramesPerSecond(): number | undefined;
|
|
1728
|
+
protected getDroppedFrames(): number | undefined;
|
|
1729
|
+
protected getTotalBytes(): number | undefined;
|
|
1730
|
+
protected getRendition(): string | undefined;
|
|
1731
|
+
protected getIsLive(): boolean | undefined;
|
|
1732
|
+
}
|
|
1733
|
+
declare class ImaAdapter<TPlayer = unknown> implements AdAdapterHost {
|
|
1734
|
+
private readonly player;
|
|
1735
|
+
private readonly disposers;
|
|
1736
|
+
private video;
|
|
1737
|
+
private ad;
|
|
1738
|
+
private isDai;
|
|
1739
|
+
private currentAd;
|
|
1740
|
+
private clickUrl;
|
|
1741
|
+
private lastClickUrl;
|
|
1742
|
+
private lastClickTimeMs;
|
|
1743
|
+
private daiResource;
|
|
1744
|
+
private totalAds;
|
|
1745
|
+
private adStarted;
|
|
1746
|
+
private adInitSent;
|
|
1747
|
+
private adStartSent;
|
|
1748
|
+
private adJoined;
|
|
1749
|
+
private breakStarted;
|
|
1750
|
+
private readonly breakAdsByOffset;
|
|
1751
|
+
private readonly adViewability;
|
|
1752
|
+
constructor(player: TPlayer);
|
|
1753
|
+
attach(video: VideoAdapter, adapter: AdAdapter): void;
|
|
1754
|
+
detach(): void;
|
|
1755
|
+
getVersion(): string;
|
|
1756
|
+
getPlayerVersion(): string | undefined;
|
|
1757
|
+
willShowCsaiPostroll(): boolean;
|
|
1758
|
+
private registerListeners;
|
|
1759
|
+
private listenMany;
|
|
1760
|
+
private fireBreakStart;
|
|
1761
|
+
private fireBreakStop;
|
|
1762
|
+
private fireContentPauseForAd;
|
|
1763
|
+
private fireContentResumeAfterAd;
|
|
1764
|
+
private fireAdStart;
|
|
1765
|
+
private dispatchAdStartWithOldPreamble;
|
|
1766
|
+
private fireAdJoin;
|
|
1767
|
+
private fireAdPause;
|
|
1768
|
+
private fireAdResume;
|
|
1769
|
+
private fireAdSkip;
|
|
1770
|
+
private fireAdStop;
|
|
1771
|
+
private resetAdState;
|
|
1772
|
+
private isReadyForAdStart;
|
|
1773
|
+
private shouldStopContentForCsaiAllAdsCompleted;
|
|
1774
|
+
private errorListener;
|
|
1775
|
+
private clickListener;
|
|
1776
|
+
private metadata;
|
|
1777
|
+
private dispatch;
|
|
1778
|
+
private getAudioEnabled;
|
|
1779
|
+
private updateBreakInfoFromPodInfo;
|
|
1780
|
+
private getBreaksTime;
|
|
1781
|
+
private getGivenBreaks;
|
|
1782
|
+
private getExpectedBreaks;
|
|
1783
|
+
private getExpectedPattern;
|
|
1784
|
+
private getIsSkippable;
|
|
1785
|
+
private getIsVisible;
|
|
1786
|
+
}
|
|
1787
|
+
declare class BaseWebAdAdapter<TPlayer = unknown, TOptions = unknown> implements AdAdapterHost {
|
|
1788
|
+
protected readonly player: TPlayer;
|
|
1789
|
+
protected readonly options: TOptions | undefined;
|
|
1790
|
+
protected video: VideoAdapter | undefined;
|
|
1791
|
+
protected ad: AdAdapter | undefined;
|
|
1792
|
+
protected currentAd: unknown;
|
|
1793
|
+
protected currentBreak: unknown;
|
|
1794
|
+
protected state: {
|
|
1795
|
+
breakStarted: boolean;
|
|
1796
|
+
initSent: boolean;
|
|
1797
|
+
started: boolean;
|
|
1798
|
+
startSent: boolean;
|
|
1799
|
+
joined: boolean;
|
|
1800
|
+
paused: boolean;
|
|
1801
|
+
buffering: boolean;
|
|
1802
|
+
};
|
|
1803
|
+
private readonly disposers;
|
|
1804
|
+
private readonly adViewability;
|
|
1805
|
+
constructor(player: TPlayer, options?: TOptions);
|
|
1806
|
+
attach(video: VideoAdapter, adapter: AdAdapter): void;
|
|
1807
|
+
detach(): void;
|
|
1808
|
+
getVersion(): string | undefined;
|
|
1809
|
+
protected registerListeners(): void;
|
|
1810
|
+
protected addCleanup(dispose: () => void): void;
|
|
1811
|
+
protected listen(target: unknown, event: string | undefined, handler: EventHandler, options?: unknown): void;
|
|
1812
|
+
protected fireManifest(extra?: AdMetadata): void;
|
|
1813
|
+
protected fireBreakStart(extra?: AdMetadata): void;
|
|
1814
|
+
protected fireBreakStop(extra?: AdMetadata): void;
|
|
1815
|
+
protected fireContentPauseForAd(): void;
|
|
1816
|
+
protected fireContentResumeAfterAd(): void;
|
|
1817
|
+
protected fireInit(extra?: AdMetadata): void;
|
|
1818
|
+
protected fireStart(extra?: AdMetadata): void;
|
|
1819
|
+
private dispatchAdStartWithOldPreamble;
|
|
1820
|
+
protected fireJoin(extra?: AdMetadata): void;
|
|
1821
|
+
protected firePause(extra?: AdMetadata): void;
|
|
1822
|
+
protected fireResume(extra?: AdMetadata): void;
|
|
1823
|
+
protected fireBufferBegin(extra?: AdMetadata): void;
|
|
1824
|
+
protected fireBufferEnd(extra?: AdMetadata): void;
|
|
1825
|
+
protected fireQuartile(quartile: number, extra?: AdMetadata): void;
|
|
1826
|
+
protected fireClick(extra?: AdMetadata): void;
|
|
1827
|
+
protected fireSkip(extra?: AdMetadata): void;
|
|
1828
|
+
protected fireStop(extra?: AdMetadata): void;
|
|
1829
|
+
protected fireError(errorCode: unknown, errorMessage?: unknown, extra?: AdMetadata): void;
|
|
1830
|
+
protected fireFatalError(errorCode: unknown, errorMessage?: unknown, extra?: AdMetadata): void;
|
|
1831
|
+
protected metadata(extra?: AdMetadata): AdMetadata;
|
|
1832
|
+
protected getAdPlayhead(): number | undefined;
|
|
1833
|
+
protected getPlayerName(): string | undefined;
|
|
1834
|
+
protected getAdDuration(): number | undefined;
|
|
1835
|
+
protected getAdResource(): string | undefined;
|
|
1836
|
+
protected getAdTitle(): string | undefined;
|
|
1837
|
+
protected getCreativeId(): string | undefined;
|
|
1838
|
+
protected getAdCampaign(): string | undefined;
|
|
1839
|
+
protected getAdPlayerVersion(): string | undefined;
|
|
1840
|
+
protected getAdProvider(): string | undefined;
|
|
1841
|
+
protected getAdMetadata(): Record<string, unknown> | undefined;
|
|
1842
|
+
protected getAdBitrate(): number | undefined;
|
|
1843
|
+
protected getIsSkippable(): boolean | undefined;
|
|
1844
|
+
protected getIsFullscreen(): boolean | undefined;
|
|
1845
|
+
protected getAudioEnabled(): boolean | undefined;
|
|
1846
|
+
protected getAdExtraparam(_index: number): string | undefined;
|
|
1847
|
+
protected getGivenAds(): number | undefined;
|
|
1848
|
+
protected getExpectedAds(): number | undefined;
|
|
1849
|
+
protected getGivenBreaks(): number | undefined;
|
|
1850
|
+
protected getExpectedBreaks(): number | undefined;
|
|
1851
|
+
protected getExpectedPattern(): AdExpectedPattern | string | undefined;
|
|
1852
|
+
protected getBreaksTime(): string | number[] | undefined;
|
|
1853
|
+
protected getBreakNumber(): number | undefined;
|
|
1854
|
+
protected getAdNumber(): number | undefined;
|
|
1855
|
+
protected getAdNumberInBreak(): number | undefined;
|
|
1856
|
+
protected getAdPosition(): "pre" | "mid" | "post" | "unknown" | undefined;
|
|
1857
|
+
protected getAdInsertionType(): "csai" | "ssai" | "unknown" | undefined;
|
|
1858
|
+
protected getIsVisible(): boolean;
|
|
1859
|
+
protected dispatch(result: Promise<ForgeResult> | undefined): void;
|
|
1860
|
+
protected resetState(): void;
|
|
1861
|
+
private startAdViewability;
|
|
1862
|
+
private isReadyForAdStart;
|
|
1863
|
+
}
|
|
1864
|
+
declare class BitmovinNativeAdsAdapter<TPlayer = unknown> extends BaseWebAdAdapter<TPlayer> {
|
|
1865
|
+
private title;
|
|
1866
|
+
private bitrate;
|
|
1867
|
+
private creativeId;
|
|
1868
|
+
private resource;
|
|
1869
|
+
private width;
|
|
1870
|
+
private height;
|
|
1871
|
+
private skippable;
|
|
1872
|
+
private duration;
|
|
1873
|
+
private lastPlayhead;
|
|
1874
|
+
private position;
|
|
1875
|
+
getVersion(): string;
|
|
1876
|
+
protected registerListeners(): void;
|
|
1877
|
+
protected getAdPlayhead(): number | undefined;
|
|
1878
|
+
protected getAdTitle(): string | undefined;
|
|
1879
|
+
protected getAdDuration(): number | undefined;
|
|
1880
|
+
protected getAdResource(): string | undefined;
|
|
1881
|
+
protected getCreativeId(): string | undefined;
|
|
1882
|
+
protected getAdBitrate(): number | undefined;
|
|
1883
|
+
protected getIsSkippable(): boolean | undefined;
|
|
1884
|
+
protected getAudioEnabled(): boolean | undefined;
|
|
1885
|
+
protected getIsFullscreen(): boolean | undefined;
|
|
1886
|
+
protected getIsVisible(): boolean;
|
|
1887
|
+
protected getAdPosition(): "pre" | "mid" | "post" | "unknown" | undefined;
|
|
1888
|
+
protected getAdInsertionType(): "csai" | "ssai" | undefined;
|
|
1889
|
+
private breakStartListener;
|
|
1890
|
+
private breakEndListener;
|
|
1891
|
+
private adStartListener;
|
|
1892
|
+
private adEndListener;
|
|
1893
|
+
private skipListener;
|
|
1894
|
+
private quartileListener;
|
|
1895
|
+
private destroyListener;
|
|
1896
|
+
}
|
|
1897
|
+
declare class TheoplayerNativeAdsAdapter<TPlayer = unknown> extends BaseWebAdAdapter<TPlayer> {
|
|
1898
|
+
private actualSlot;
|
|
1899
|
+
private adCount;
|
|
1900
|
+
private duration;
|
|
1901
|
+
private playheadStart;
|
|
1902
|
+
private dai;
|
|
1903
|
+
private lastQuartile;
|
|
1904
|
+
getVersion(): string;
|
|
1905
|
+
protected registerListeners(): void;
|
|
1906
|
+
protected getAdPosition(): "pre" | "mid" | "post";
|
|
1907
|
+
protected getAdPlayhead(): number | undefined;
|
|
1908
|
+
protected getAdDuration(): number | undefined;
|
|
1909
|
+
protected getGivenBreaks(): number | undefined;
|
|
1910
|
+
protected getGivenAds(): number | undefined;
|
|
1911
|
+
protected getIsSkippable(): boolean | undefined;
|
|
1912
|
+
protected getIsFullscreen(): boolean | undefined;
|
|
1913
|
+
protected getAudioEnabled(): boolean | undefined;
|
|
1914
|
+
protected getAdResource(): string | undefined;
|
|
1915
|
+
protected getAdTitle(): string | undefined;
|
|
1916
|
+
protected getIsVisible(): boolean;
|
|
1917
|
+
private currentTheoAd;
|
|
1918
|
+
private breakBeginListener;
|
|
1919
|
+
private playAdListener;
|
|
1920
|
+
private endedAdListener;
|
|
1921
|
+
private errorAdListener;
|
|
1922
|
+
private skipAdListener;
|
|
1923
|
+
private breakEndListener;
|
|
1924
|
+
private quartileListener;
|
|
1925
|
+
}
|
|
1926
|
+
declare class JwplayerGenericAdsAdapter<TPlayer = unknown> extends BaseWebAdAdapter<TPlayer> {
|
|
1927
|
+
private duration;
|
|
1928
|
+
private resource;
|
|
1929
|
+
private playhead;
|
|
1930
|
+
private title;
|
|
1931
|
+
private position;
|
|
1932
|
+
private manager;
|
|
1933
|
+
private pod;
|
|
1934
|
+
private clickThrough;
|
|
1935
|
+
private skippable;
|
|
1936
|
+
private creativeId;
|
|
1937
|
+
private firstStarted;
|
|
1938
|
+
private lastQuartile;
|
|
1939
|
+
getVersion(): string;
|
|
1940
|
+
protected registerListeners(): void;
|
|
1941
|
+
protected getAdDuration(): number | undefined;
|
|
1942
|
+
protected getAdResource(): string | undefined;
|
|
1943
|
+
protected getAdPlayhead(): number | undefined;
|
|
1944
|
+
protected getAdTitle(): string | undefined;
|
|
1945
|
+
protected getAdPosition(): "pre" | "mid" | "post" | "unknown" | undefined;
|
|
1946
|
+
protected getGivenBreaks(): number | undefined;
|
|
1947
|
+
protected getBreaksTime(): number[] | undefined;
|
|
1948
|
+
protected getGivenAds(): number | undefined;
|
|
1949
|
+
protected getAudioEnabled(): boolean | undefined;
|
|
1950
|
+
protected getIsSkippable(): boolean | undefined;
|
|
1951
|
+
protected getIsFullscreen(): boolean | undefined;
|
|
1952
|
+
protected getIsVisible(): boolean;
|
|
1953
|
+
protected getCreativeId(): string | undefined;
|
|
1954
|
+
private adTimeListener;
|
|
1955
|
+
private applyImaMetadata;
|
|
1956
|
+
private quartileHandler;
|
|
1957
|
+
private adStartedListener;
|
|
1958
|
+
private adImpressionListener;
|
|
1959
|
+
private adSkippedListener;
|
|
1960
|
+
private adCompleteListener;
|
|
1961
|
+
private adErrorListener;
|
|
1962
|
+
private resetValues;
|
|
1963
|
+
}
|
|
1964
|
+
declare class VideoJsGenericAdsAdapter<TPlayer = unknown> extends BaseWebAdAdapter<TPlayer> {
|
|
1965
|
+
getVersion(): string;
|
|
1966
|
+
protected registerListeners(): void;
|
|
1967
|
+
}
|
|
1968
|
+
declare class BrightcoveGenericAdsAdapter<TPlayer = unknown> extends VideoJsGenericAdsAdapter<TPlayer> {
|
|
1969
|
+
getVersion(): string;
|
|
1970
|
+
protected registerListeners(): void;
|
|
1971
|
+
}
|
|
1972
|
+
declare abstract class BaseBcoveImaAdsAdapter<TPlayer = unknown> extends BaseWebAdAdapter<TPlayer> {
|
|
1973
|
+
protected lastBitrate: number | undefined;
|
|
1974
|
+
getVersion(): string | undefined;
|
|
1975
|
+
protected getAdPlayhead(): number | undefined;
|
|
1976
|
+
protected getAdDuration(): number | undefined;
|
|
1977
|
+
protected getAdPosition(): "pre" | "mid" | "post";
|
|
1978
|
+
protected getAdResource(): string | undefined;
|
|
1979
|
+
protected getAdTitle(): string | undefined;
|
|
1980
|
+
protected getAdPlayerVersion(): string | undefined;
|
|
1981
|
+
protected getGivenBreaks(): number | undefined;
|
|
1982
|
+
protected getBreaksTime(): number[] | undefined;
|
|
1983
|
+
protected getGivenAds(): number | undefined;
|
|
1984
|
+
protected getAudioEnabled(): boolean | undefined;
|
|
1985
|
+
protected getIsSkippable(): boolean | undefined;
|
|
1986
|
+
protected getIsFullscreen(): boolean | undefined;
|
|
1987
|
+
protected getIsVisible(): boolean;
|
|
1988
|
+
protected getAdBitrate(): number | undefined;
|
|
1989
|
+
protected getCreativeId(): string | undefined;
|
|
1990
|
+
protected startJoinListener(): void;
|
|
1991
|
+
protected skippedListener(): void;
|
|
1992
|
+
protected adEndedListener(): void;
|
|
1993
|
+
protected errorListener(event: unknown): void;
|
|
1994
|
+
protected clickListener(): void;
|
|
1995
|
+
protected videoJsPlayer(): unknown;
|
|
1996
|
+
}
|
|
1997
|
+
declare class VideoJsImaAdsAdapter<TPlayer = unknown> extends BaseBcoveImaAdsAdapter<TPlayer> {
|
|
1998
|
+
protected registerListeners(): void;
|
|
1999
|
+
}
|
|
2000
|
+
declare class BrightcoveImaAdsAdapter<TPlayer = unknown> extends BaseBcoveImaAdsAdapter<TPlayer> {
|
|
2001
|
+
protected registerListeners(): void;
|
|
2002
|
+
}
|
|
2003
|
+
declare class BrightcoveAdsAdapter<TPlayer = unknown> extends BaseWebAdAdapter<TPlayer> {
|
|
2004
|
+
private lastDuration;
|
|
2005
|
+
getVersion(): string;
|
|
2006
|
+
protected registerListeners(): void;
|
|
2007
|
+
protected getPlayerName(): string;
|
|
2008
|
+
protected getAdPlayerVersion(): string | undefined;
|
|
2009
|
+
protected getAdPlayhead(): number | undefined;
|
|
2010
|
+
protected getAdPosition(): "pre" | "mid" | "post";
|
|
2011
|
+
protected getAdResource(): string | undefined;
|
|
2012
|
+
protected getAdTitle(): string | undefined;
|
|
2013
|
+
protected getAdDuration(): number | undefined;
|
|
2014
|
+
private adStartListener;
|
|
2015
|
+
private adEndedListener;
|
|
2016
|
+
private adSkippedListener;
|
|
2017
|
+
private clickListener;
|
|
2018
|
+
}
|
|
2019
|
+
declare class MediaKindWmcNativeAdsAdapter<TPlayer = unknown> extends BaseWebAdAdapter<TPlayer> {
|
|
2020
|
+
getVersion(): string;
|
|
2021
|
+
protected registerListeners(): void;
|
|
2022
|
+
}
|
|
2023
|
+
declare class ChromecastCafAdsAdapter<TPlayer = unknown> extends BaseWebAdAdapter<TPlayer> {
|
|
2024
|
+
private quartileTimer;
|
|
2025
|
+
private clipId;
|
|
2026
|
+
private isSkippable;
|
|
2027
|
+
private adsInBreak;
|
|
2028
|
+
private sentQuartiles;
|
|
2029
|
+
getVersion(): string;
|
|
2030
|
+
protected getPlayerName(): string;
|
|
2031
|
+
protected registerListeners(): void;
|
|
2032
|
+
protected getAdPlayhead(): number | undefined;
|
|
2033
|
+
protected getAdDuration(): number | undefined;
|
|
2034
|
+
protected getCreativeId(): string | undefined;
|
|
2035
|
+
protected getAdTitle(): string;
|
|
2036
|
+
protected getAdResource(): string;
|
|
2037
|
+
protected getIsSkippable(): boolean;
|
|
2038
|
+
protected getIsFullscreen(): boolean;
|
|
2039
|
+
protected getGivenAds(): number | undefined;
|
|
2040
|
+
protected getGivenBreaks(): number | undefined;
|
|
2041
|
+
protected getBreaksTime(): number[] | undefined;
|
|
2042
|
+
protected getAdPosition(): "pre" | "mid" | "post";
|
|
2043
|
+
private startQuartiles;
|
|
2044
|
+
private stopQuartiles;
|
|
2045
|
+
private sendQuartiles;
|
|
2046
|
+
}
|
|
2047
|
+
declare class BrightcoveFreewheelAdsAdapter<TPlayer = unknown> extends BaseWebAdAdapter<TPlayer> {
|
|
2048
|
+
private lastDuration;
|
|
2049
|
+
private videoEnded;
|
|
2050
|
+
getVersion(): string;
|
|
2051
|
+
protected getPlayerName(): string;
|
|
2052
|
+
protected registerListeners(): void;
|
|
2053
|
+
protected getAdPlayhead(): number | undefined;
|
|
2054
|
+
protected getAdDuration(): number | undefined;
|
|
2055
|
+
protected getAdPlayerVersion(): string | undefined;
|
|
2056
|
+
protected getAdResource(): string | undefined;
|
|
2057
|
+
protected getAdTitle(): string | undefined;
|
|
2058
|
+
protected getAdPosition(): "pre" | "mid" | "post" | "unknown";
|
|
2059
|
+
}
|
|
2060
|
+
declare class FreewheelAdsAdapter<TPlayer = unknown> extends BaseWebAdAdapter<TPlayer> {
|
|
2061
|
+
private slot;
|
|
2062
|
+
private position;
|
|
2063
|
+
private disabledSlot;
|
|
2064
|
+
private adPlayhead;
|
|
2065
|
+
private playheadInterval;
|
|
2066
|
+
private currentAdIndex;
|
|
2067
|
+
private lastClickUrl;
|
|
2068
|
+
private lastClickMs;
|
|
2069
|
+
private adVideoElement;
|
|
2070
|
+
private lastDecodedBytes;
|
|
2071
|
+
private lastBitrateMs;
|
|
2072
|
+
private readonly adBufferStartHandler;
|
|
2073
|
+
private readonly adBufferEndHandler;
|
|
2074
|
+
getVersion(): string;
|
|
2075
|
+
protected getPlayerName(): string;
|
|
2076
|
+
protected registerListeners(): void;
|
|
2077
|
+
protected getAdPlayhead(): number | undefined;
|
|
2078
|
+
protected getAdDuration(): number | undefined;
|
|
2079
|
+
protected getAdResource(): string | undefined;
|
|
2080
|
+
protected getAdTitle(): string | undefined;
|
|
2081
|
+
protected getCreativeId(): string | undefined;
|
|
2082
|
+
protected getAdPlayerVersion(): string | undefined;
|
|
2083
|
+
protected getAdBitrate(): number | undefined;
|
|
2084
|
+
protected getAudioEnabled(): boolean | undefined;
|
|
2085
|
+
protected getGivenAds(): number | undefined;
|
|
2086
|
+
protected getExpectedAds(): number | undefined;
|
|
2087
|
+
protected getGivenBreaks(): number | undefined;
|
|
2088
|
+
protected getExpectedBreaks(): number | undefined;
|
|
2089
|
+
protected getExpectedPattern(): AdExpectedPattern | undefined;
|
|
2090
|
+
protected getBreaksTime(): number[] | undefined;
|
|
2091
|
+
protected getAdPosition(): "pre" | "mid" | "post" | "unknown" | undefined;
|
|
2092
|
+
private slotListener;
|
|
2093
|
+
private freewheelSlotPosition;
|
|
2094
|
+
private logListener;
|
|
2095
|
+
private errorListener;
|
|
2096
|
+
private closeListener;
|
|
2097
|
+
private currentAdInstance;
|
|
2098
|
+
private freewheelAdVolume;
|
|
2099
|
+
private freewheelVideoAdInstances;
|
|
2100
|
+
private isFreewheelVideoAd;
|
|
2101
|
+
private freewheelBreakPositions;
|
|
2102
|
+
private freewheelSlots;
|
|
2103
|
+
private freewheelPlayerTemporalSlots;
|
|
2104
|
+
private startBufferMonitoring;
|
|
2105
|
+
private stopBufferMonitoring;
|
|
2106
|
+
private freewheelVideoElement;
|
|
2107
|
+
private decodedByteAdBitrate;
|
|
2108
|
+
private startAdPlayheadTracking;
|
|
2109
|
+
private stopAdPlayheadTracking;
|
|
2110
|
+
private freewheelClickUrl;
|
|
2111
|
+
private isDuplicateClick;
|
|
2112
|
+
}
|
|
2113
|
+
declare class MediaTailorAdsAdapter<TPlayer = unknown> extends BaseWebAdAdapter<TPlayer, {
|
|
2114
|
+
pollMs?: number;
|
|
2115
|
+
maxFetchRetries?: number;
|
|
2116
|
+
fetch?: typeof fetch;
|
|
2117
|
+
}> {
|
|
2118
|
+
private manifestUrl;
|
|
2119
|
+
private ads;
|
|
2120
|
+
private currentTimelineAd;
|
|
2121
|
+
private currentTimelineBreak;
|
|
2122
|
+
private fetchLoopId;
|
|
2123
|
+
private fetchAttempts;
|
|
2124
|
+
getVersion(): string;
|
|
2125
|
+
protected getPlayerName(): string;
|
|
2126
|
+
setManifestUrl(url: string): void;
|
|
2127
|
+
protected registerListeners(): void;
|
|
2128
|
+
protected getAdPlayhead(): number | undefined;
|
|
2129
|
+
protected getAdDuration(): number | undefined;
|
|
2130
|
+
protected getAdTitle(): string | undefined;
|
|
2131
|
+
protected getAdResource(): string | undefined;
|
|
2132
|
+
protected getGivenAds(): number | undefined;
|
|
2133
|
+
protected getExpectedAds(): number | undefined;
|
|
2134
|
+
protected getGivenBreaks(): number | undefined;
|
|
2135
|
+
protected getExpectedBreaks(): number | undefined;
|
|
2136
|
+
protected getBreaksTime(): number[] | undefined;
|
|
2137
|
+
protected getAdPosition(): "pre" | "mid" | "post" | "unknown" | undefined;
|
|
2138
|
+
private videoElement;
|
|
2139
|
+
private scheduleNextFetch;
|
|
2140
|
+
private parseAds;
|
|
2141
|
+
private timeUpdateListener;
|
|
2142
|
+
private determinePosition;
|
|
2143
|
+
}
|
|
2144
|
+
declare class NowtilusAdsAdapter<TPlayer = unknown> extends BaseWebAdAdapter<TPlayer> {
|
|
2145
|
+
private nowtilusPlugin;
|
|
2146
|
+
private adStartTime;
|
|
2147
|
+
private adPauseActive;
|
|
2148
|
+
private lastAdPauseAtMs;
|
|
2149
|
+
private manifestUrl;
|
|
2150
|
+
private manifestBreaks;
|
|
2151
|
+
private timelineAdCount;
|
|
2152
|
+
private manifestFired;
|
|
2153
|
+
private fallbackBreakCount;
|
|
2154
|
+
private fallbackBreakTimes;
|
|
2155
|
+
getVersion(): string;
|
|
2156
|
+
protected getPlayerName(): string;
|
|
2157
|
+
setNowtilusPlugin(nowtilusPlugin: unknown): void;
|
|
2158
|
+
setManifestUrl(url: string): void;
|
|
2159
|
+
protected registerListeners(): void;
|
|
2160
|
+
protected getAdPlayhead(): number | undefined;
|
|
2161
|
+
protected getAdDuration(): number | undefined;
|
|
2162
|
+
protected getAdTitle(): string | undefined;
|
|
2163
|
+
protected getAdResource(): string | undefined;
|
|
2164
|
+
protected getCreativeId(): string | undefined;
|
|
2165
|
+
protected getAdCampaign(): string | undefined;
|
|
2166
|
+
protected getAdPlayerVersion(): string | undefined;
|
|
2167
|
+
protected getAdProvider(): string | undefined;
|
|
2168
|
+
protected getExpectedAds(): number | undefined;
|
|
2169
|
+
protected getGivenAds(): number | undefined;
|
|
2170
|
+
protected getGivenBreaks(): number | undefined;
|
|
2171
|
+
protected getExpectedBreaks(): number | undefined;
|
|
2172
|
+
protected getExpectedPattern(): AdExpectedPattern | undefined;
|
|
2173
|
+
protected getBreaksTime(): number[] | undefined;
|
|
2174
|
+
protected getAdPosition(): "pre" | "mid" | "post" | "unknown" | undefined;
|
|
2175
|
+
protected getAdInsertionType(): "ssai";
|
|
2176
|
+
private registerNowtilusListeners;
|
|
2177
|
+
private listenNowtilus;
|
|
2178
|
+
private determinePosition;
|
|
2179
|
+
private shouldIgnoreCueTimelineExit;
|
|
2180
|
+
private parseCueTimeline;
|
|
2181
|
+
private fallbackBreakMetadata;
|
|
2182
|
+
private manifestBreakMetadata;
|
|
2183
|
+
private isAdPlaying;
|
|
2184
|
+
}
|
|
2185
|
+
declare class YospaceAdsAdapter<TPlayer = unknown> extends BaseWebAdAdapter<TPlayer> {
|
|
2186
|
+
private session;
|
|
2187
|
+
private observer;
|
|
2188
|
+
private adBreakActive;
|
|
2189
|
+
private adStartStreamTime;
|
|
2190
|
+
private expectedAds;
|
|
2191
|
+
private expectedBreaks;
|
|
2192
|
+
private position;
|
|
2193
|
+
private manifestFired;
|
|
2194
|
+
private mediaListenersTarget;
|
|
2195
|
+
getVersion(): string;
|
|
2196
|
+
protected getPlayerName(): string;
|
|
2197
|
+
setSession(session: unknown): void;
|
|
2198
|
+
protected registerListeners(): void;
|
|
2199
|
+
protected getAdPlayhead(): number | undefined;
|
|
2200
|
+
protected getAdDuration(): number | undefined;
|
|
2201
|
+
protected getAdTitle(): string | undefined;
|
|
2202
|
+
protected getAdResource(): string | undefined;
|
|
2203
|
+
protected getCreativeId(): string | undefined;
|
|
2204
|
+
protected getAdPlayerVersion(): string | undefined;
|
|
2205
|
+
protected getAdProvider(): string | undefined;
|
|
2206
|
+
protected getAdCampaign(): string | undefined;
|
|
2207
|
+
protected getIsSkippable(): boolean | undefined;
|
|
2208
|
+
protected getExpectedAds(): number | undefined;
|
|
2209
|
+
protected getGivenAds(): number | undefined;
|
|
2210
|
+
protected getExpectedBreaks(): number;
|
|
2211
|
+
protected getExpectedPattern(): string | undefined;
|
|
2212
|
+
protected getGivenBreaks(): number;
|
|
2213
|
+
protected getBreaksTime(): number[] | undefined;
|
|
2214
|
+
protected getAdPosition(): "pre" | "mid" | "post" | "unknown" | undefined;
|
|
2215
|
+
protected getAdInsertionType(): "ssai";
|
|
2216
|
+
private registerObserver;
|
|
2217
|
+
private attachVideoListeners;
|
|
2218
|
+
private mediaElement;
|
|
2219
|
+
private onBreakStart;
|
|
2220
|
+
private onBreakEnd;
|
|
2221
|
+
private onAdStart;
|
|
2222
|
+
private yospaceProvider;
|
|
2223
|
+
private onAdEnd;
|
|
2224
|
+
private joinStartedContentBeforePreroll;
|
|
2225
|
+
private onTrackingEvent;
|
|
2226
|
+
}
|
|
2227
|
+
declare const HTML5Adapter: typeof Html5Adapter;
|
|
2228
|
+
declare const DashjsAdapter: typeof DashJSAdapter;
|
|
2229
|
+
declare const THEOplayerAdapter: typeof TheoplayerAdapter;
|
|
2230
|
+
declare const ChromecastCAFAdapter: typeof ChromecastCafAdapter;
|
|
2231
|
+
declare const HbbtvAdapter: typeof HbbTVAdapter;
|
|
2232
|
+
declare const HbbTvAdapter: typeof HbbTVAdapter;
|
|
2233
|
+
declare const JWPlayerAdapter: typeof JwplayerAdapter;
|
|
2234
|
+
declare const MediaKindMKPlayerAdapter: typeof MediaKindMkplayerAdapter;
|
|
2235
|
+
declare const MediaKindWMCAdapter: typeof MediaKindWmcAdapter;
|
|
2236
|
+
declare const MediaKindWMCNativeAdsAdapter: typeof MediaKindWmcNativeAdsAdapter;
|
|
2237
|
+
declare const NanoplayerAdapter: typeof NanoPlayerAdapter;
|
|
2238
|
+
declare const TcplayerAdapter: typeof TCPlayerAdapter;
|
|
2239
|
+
declare const ViaccessorcaAdapter: typeof ViaccessOrcaAdapter;
|
|
2240
|
+
declare const VisualONAdapter: typeof VisualOnAdapter;
|
|
2241
|
+
declare const VisualonAdapter: typeof VisualOnAdapter;
|
|
2242
|
+
declare const ChromecastCAFAdsAdapter: typeof ChromecastCafAdsAdapter;
|
|
2243
|
+
declare const BrightcoveFreeWheelAdsAdapter: typeof BrightcoveFreewheelAdsAdapter;
|
|
2244
|
+
declare const FreeWheelAdsAdapter: typeof FreewheelAdsAdapter;
|
|
2245
|
+
declare const MediatailorAdsAdapter: typeof MediaTailorAdsAdapter;
|
|
2246
|
+
declare const THEOplayerNativeAdsAdapter: typeof TheoplayerNativeAdsAdapter;
|
|
2247
|
+
declare const JWPlayerGenericAdsAdapter: typeof JwplayerGenericAdsAdapter;
|
|
2248
|
+
declare const adapterCapabilities: {
|
|
2249
|
+
Html5: WebAdapterCapability;
|
|
2250
|
+
AVPlay: WebAdapterCapability;
|
|
2251
|
+
Hlsjs: WebAdapterCapability;
|
|
2252
|
+
Shaka: WebAdapterCapability;
|
|
2253
|
+
DashJS: WebAdapterCapability;
|
|
2254
|
+
VideoJs: WebAdapterCapability;
|
|
2255
|
+
Bitmovin: WebAdapterCapability;
|
|
2256
|
+
Theoplayer: WebAdapterCapability;
|
|
2257
|
+
Akamai: WebAdapterCapability;
|
|
2258
|
+
Brightcove: WebAdapterCapability;
|
|
2259
|
+
Chromecast: WebAdapterCapability;
|
|
2260
|
+
ChromecastCaf: WebAdapterCapability;
|
|
2261
|
+
Flvjs: WebAdapterCapability;
|
|
2262
|
+
HbbTV: WebAdapterCapability;
|
|
2263
|
+
Jwplayer: WebAdapterCapability;
|
|
2264
|
+
MediaKindMkplayer: WebAdapterCapability;
|
|
2265
|
+
MediaKindWmc: WebAdapterCapability;
|
|
2266
|
+
Nagra: WebAdapterCapability;
|
|
2267
|
+
NanoPlayer: WebAdapterCapability;
|
|
2268
|
+
TCPlayer: WebAdapterCapability;
|
|
2269
|
+
Triton: WebAdapterCapability;
|
|
2270
|
+
ViaccessOrca: WebAdapterCapability;
|
|
2271
|
+
VisualOn: WebAdapterCapability;
|
|
2272
|
+
Ima: {
|
|
2273
|
+
adapterId: string;
|
|
2274
|
+
family: "ads";
|
|
2275
|
+
oldSourcePath: string;
|
|
2276
|
+
targetExportName: string;
|
|
2277
|
+
phase: string;
|
|
2278
|
+
supportedTargets: string[];
|
|
2279
|
+
sdkDependency: string;
|
|
2280
|
+
constructorInput: string;
|
|
2281
|
+
listenerInstall: string;
|
|
2282
|
+
listenerCleanup: string;
|
|
2283
|
+
initStartJoinStrategy: string;
|
|
2284
|
+
metadataSources: string[];
|
|
2285
|
+
qosSources: never[];
|
|
2286
|
+
eventMappings: never[];
|
|
2287
|
+
adMappings: string[];
|
|
2288
|
+
startGatingSupport: string;
|
|
2289
|
+
metadataUpdateSupport: string;
|
|
2290
|
+
teardownIdempotency: string;
|
|
2291
|
+
multiPlayerSafety: string;
|
|
2292
|
+
migrationNotes: string;
|
|
2293
|
+
unitTests: string;
|
|
2294
|
+
smokeTests: string;
|
|
2295
|
+
};
|
|
2296
|
+
BitmovinNativeAds: WebAdapterCapability;
|
|
2297
|
+
TheoplayerNativeAds: WebAdapterCapability;
|
|
2298
|
+
JwplayerGenericAds: WebAdapterCapability;
|
|
2299
|
+
VideoJsGenericAds: WebAdapterCapability;
|
|
2300
|
+
VideoJsImaAds: WebAdapterCapability;
|
|
2301
|
+
BrightcoveAds: WebAdapterCapability;
|
|
2302
|
+
BrightcoveImaAds: WebAdapterCapability;
|
|
2303
|
+
BrightcoveGenericAds: WebAdapterCapability;
|
|
2304
|
+
MediaKindWmcNativeAds: WebAdapterCapability;
|
|
2305
|
+
ChromecastCafAds: WebAdapterCapability;
|
|
2306
|
+
BrightcoveFreewheel: WebAdapterCapability;
|
|
2307
|
+
Freewheel: WebAdapterCapability;
|
|
2308
|
+
MediaTailor: WebAdapterCapability;
|
|
2309
|
+
Nowtilus: WebAdapterCapability;
|
|
2310
|
+
Yospace: WebAdapterCapability;
|
|
2311
|
+
BitmovinReactNative: WebAdapterCapability;
|
|
2312
|
+
NagraReactNative: WebAdapterCapability;
|
|
2313
|
+
ReactNativeVideo: WebAdapterCapability;
|
|
2314
|
+
};
|
|
2315
|
+
declare function registerDefaultWebAdapters(target: Record<string, unknown>): void;
|
|
2316
|
+
|
|
2317
|
+
/**
|
|
2318
|
+
* Copyright (C) NPAW - All Rights Reserved
|
|
2319
|
+
*
|
|
2320
|
+
* This source code is protected under international copyright law. All rights
|
|
2321
|
+
* reserved and protected by the copyright holders.
|
|
2322
|
+
* This file is confidential and only available to authorized individuals with the
|
|
2323
|
+
* permission of the copyright holders. If you encounter this file and do not have
|
|
2324
|
+
* permission, please contact the copyright holders and delete this file.
|
|
2325
|
+
*
|
|
2326
|
+
*
|
|
2327
|
+
* @author: Victor Soto <victor.soto@nicepeopleatwork.com>
|
|
2328
|
+
* @description: Public exports for the Forge Web TypeScript package.
|
|
2329
|
+
*/
|
|
2330
|
+
|
|
2331
|
+
declare const create: typeof NPAWForge.create;
|
|
2332
|
+
declare const adapters: Record<string, unknown>;
|
|
2333
|
+
|
|
2334
|
+
export { AVPlayAdapter, AdAdapter, type AdAdapterClass, type AdAdapterHost, type AdEventName, type AdMetadata, type AdViewabilitySample, AkamaiAdapter, BaseWebAdAdapter, BaseWebPlayerAdapter, BitmovinAdapter, BitmovinNativeAdsAdapter, BrightcoveAdapter, BrightcoveAdsAdapter, BrightcoveFreeWheelAdsAdapter, BrightcoveFreewheelAdsAdapter, BrightcoveGenericAdsAdapter, BrightcoveImaAdsAdapter, BrowserForgeTransport, CAPTURE_PLAN_BITS, ChromecastAdapter, ChromecastCAFAdapter, ChromecastCAFAdsAdapter, ChromecastCafAdapter, ChromecastCafAdsAdapter, type ContentMetadata, type ContentType, DashJSAdapter, DashjsAdapter, type DeviceOverrides, FlvjsAdapter, type ForgeAttributionParams, type ForgeCaptureEnvironment, type ForgeCaptureHandle, type ForgeCaptureInstallOptions, type ForgeCaptureInstaller, type ForgeCaptureOptions, type ForgeCapturePlanListener, type ForgeCapturePrivacyOptions, type ForgeCaptureTimers, type ForgeClock, ForgeCreateError, type ForgeCreateOptions, type ForgeDiagnostic, type ForgeDiagnosticListener, type ForgeEventListener, type ForgeEventSnapshot, type ForgeFocusCaptureMode, type ForgeFormEventData, type ForgeFormEventKind, type ForgeHttpResponse, type ForgeIdentityEventKind, type ForgeIntersectionObserverCallback, type ForgeIntersectionObserverEntryLike, type ForgeIntersectionObserverFactory, type ForgeIntersectionObserverLike, type ForgeLogListener, type ForgeLoginFailedOptions, type ForgeLoginSuccessOptions, type ForgeLogoutOptions, type ForgeMutationObserverFactory, type ForgeMutationObserverLike, type ForgeNetworkCaptureOptions, type ForgeOutcome, type ForgeOutcomeKind, type ForgeParamValue, type ForgeParams, type ForgeProfileOptions, type ForgeRenderedLog, type ForgeResolvedSectionsCaptureOptions, type ForgeResult, type ForgeRuntimeConfig, type ForgeSearchResultClickOptions, type ForgeSectionsCaptureOptions, type ForgeStorage, type ForgeTransport, type ForgeTransportRequest, FreeWheelAdsAdapter, FreewheelAdsAdapter, HTML5Adapter, HbbTVAdapter, HbbTvAdapter, HbbtvAdapter, HlsjsAdapter, Html5Adapter, ImaAdapter, JWPlayerAdapter, JWPlayerGenericAdsAdapter, JwplayerAdapter, JwplayerGenericAdsAdapter, MediaKindMKPlayerAdapter, MediaKindMkplayerAdapter, MediaKindWMCAdapter, MediaKindWMCNativeAdsAdapter, MediaKindWmcAdapter, MediaKindWmcNativeAdsAdapter, MediaTailorAdsAdapter, MediatailorAdsAdapter, MemoryForgeStorage, type MetadataSnapshot, NPAWForge, NagraAdapter, NanoPlayerAdapter, NanoplayerAdapter, type NetworkObservation, type NormalizedParams, NowtilusAdsAdapter, type OverrideBundle, type OverrideControlOptions, PlayerAdapter, type PlayerAdapterClass, type PlayerAdapterHost, type QosSnapshot, STACK_TRACE_MAX_CHARS, ShakaAdapter, TCPlayerAdapter, THEOplayerAdapter, THEOplayerNativeAdsAdapter, TcplayerAdapter, TheoplayerAdapter, TheoplayerNativeAdsAdapter, TritonAdapter, ViaccessOrcaAdapter, ViaccessorcaAdapter, VideoAdapter, VideoBuilder, type VideoBuilderOptions, type VideoEventName, VideoJsAdapter, VideoJsGenericAdsAdapter, VideoJsImaAdsAdapter, type VideoOptions, VisualONAdapter, VisualOnAdapter, VisualonAdapter, type WasmCapturePlan, type WasmCapturePlanAttribution, type WasmCapturePlanBehavior, type WasmCapturePlanFocus, type WasmCapturePlanLimits, type WasmCapturePlanSections, type WasmHttpResponse, type WasmTransportRequest, type WebAdapterCapability, YospaceAdsAdapter, adapterCapabilities, adapters, autoBootstrapFromCurrentScript, bootstrapFromScriptTag, captureElementAttribution, create, createBrowserStorage, getDefaultInstancePromise, getLastBootstrapError, installCapture, isCapturePlanEnabled, isNetworkCaptureSuppressed, normalizeRouteTemplate, parseScriptTagConfig, registerDefaultWebAdapters, requestUrl, resolveCaptureOptions, sanitizeCaptureParams, sanitizeCaptureString, sanitizeCaptureUrl, sanitizeStackTrace, serializeOverrideBundle, withoutNetworkCapture };
|