@blockcast/mmt-container 2.2.0-main.d79fbb738dc0 → 2.2.0-main.d95034c2b864
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ad-beacon.d.ts +39 -0
- package/dist/ad-beacon.d.ts.map +1 -0
- package/dist/ad-beacon.js +23 -0
- package/dist/ad-beacon.js.map +7 -0
- package/dist/ad-creative-timeline.d.ts +1 -0
- package/dist/ad-creative-timeline.d.ts.map +1 -1
- package/dist/ad-creative-timeline.js +21 -0
- package/dist/ad-creative-timeline.js.map +3 -3
- package/package.json +5 -5
- package/src/ad-beacon.ts +54 -0
- package/src/ad-creative-timeline.ts +1 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Beacon planning for ad creative signaling (draft-riedl-moq-ad-creative-signaling-01 7, 12):
|
|
3
|
+
* which URL to request and when. No I/O and no timers here (the cmcd-producer.ts precedent):
|
|
4
|
+
* the player sends each plan at sendAtMs with
|
|
5
|
+
* fetch(url, { mode: 'no-cors', credentials: 'omit', keepalive: true, referrerPolicy: 'no-referrer' }).
|
|
6
|
+
* The player calls this only for events the timeline emitted, so only for verified records.
|
|
7
|
+
*/
|
|
8
|
+
import type { AdTrackEvent } from './ad-creative-timeline.js';
|
|
9
|
+
export interface AdBeaconPolicy {
|
|
10
|
+
/** Lower-case host[:port] beacons may go to (riedl 12.1), typically the distributor's beacon proxy. Empty: nothing is sent. */
|
|
11
|
+
readonly authorities: readonly string[];
|
|
12
|
+
/** Uniform jitter window W in ms (riedl 7.2). Size it from the audience: W >= 1000 * N * k / C ms, for N receivers,
|
|
13
|
+
* k requests each at that instant and C beacon-proxy requests/s. */
|
|
14
|
+
readonly jitterMs: number;
|
|
15
|
+
/** Event types sent at once, unjittered: the verification-critical ones (riedl 7.2). */
|
|
16
|
+
readonly immediate?: readonly string[];
|
|
17
|
+
/** Pseudonymous, session-scoped client id appended as a query parameter (riedl 7.1). Never a device id. */
|
|
18
|
+
readonly clientId?: {
|
|
19
|
+
readonly param: string;
|
|
20
|
+
readonly value: string;
|
|
21
|
+
};
|
|
22
|
+
/** Query parameter carrying the event's wallclock ms on a jittered request (riedl 7.2). */
|
|
23
|
+
readonly eventTimeParam?: string;
|
|
24
|
+
/** URLs sent per event at most; the rest are suppressed (riedl 12.2). Default 16, also used for a NaN, infinite or negative value. */
|
|
25
|
+
readonly maxUrlsPerEvent?: number;
|
|
26
|
+
}
|
|
27
|
+
export type AdBeaconPlan = {
|
|
28
|
+
readonly url: string;
|
|
29
|
+
readonly sendAtMs: number;
|
|
30
|
+
readonly eventType: string;
|
|
31
|
+
} | {
|
|
32
|
+
readonly url: string;
|
|
33
|
+
readonly suppressed: 'authority' | 'cap' | 'macro';
|
|
34
|
+
readonly eventType: string;
|
|
35
|
+
};
|
|
36
|
+
/** `random` gives the jitter phase in [0, 1). The player passes one phase drawn per session, so a device's events
|
|
37
|
+
* keep their order and spacing while the audience still spreads uniformly over [0, W) (riedl 7.2). */
|
|
38
|
+
export declare function planAdBeacons(event: AdTrackEvent, policy: AdBeaconPolicy, nowMs: number, random?: () => number): AdBeaconPlan[];
|
|
39
|
+
//# sourceMappingURL=ad-beacon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ad-beacon.d.ts","sourceRoot":"","sources":["../src/ad-beacon.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE7D,MAAM,WAAW,cAAc;IAC7B,+HAA+H;IAC/H,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAA;IACvC;yEACqE;IACrE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,wFAAwF;IACxF,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACtC,2GAA2G;IAC3G,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACtE,2FAA2F;IAC3F,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAA;IAChC,sIAAsI;IACtI,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAA;CAClC;AAED,MAAM,MAAM,YAAY,GACpB;IAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAC/E;IAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,WAAW,GAAG,KAAK,GAAG,OAAO,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAA;AAK5G;uGACuG;AACvG,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAM,MAAoB,GAAG,YAAY,EAAE,CAmB5I"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// src/ad-beacon.ts
|
|
2
|
+
var VAST_MACRO = /\[[A-Z0-9_]+\]/;
|
|
3
|
+
function planAdBeacons(event, policy, nowMs, random = Math.random) {
|
|
4
|
+
const jittered = policy.jitterMs > 0 && !(policy.immediate ?? []).includes(event.eventType);
|
|
5
|
+
const delay = jittered ? Math.floor(random() * policy.jitterMs) : 0;
|
|
6
|
+
const params = [];
|
|
7
|
+
if (policy.clientId) params.push(`${encodeURIComponent(policy.clientId.param)}=${encodeURIComponent(policy.clientId.value)}`);
|
|
8
|
+
if (policy.eventTimeParam && jittered) params.push(`${encodeURIComponent(policy.eventTimeParam)}=${nowMs}`);
|
|
9
|
+
const max = policy.maxUrlsPerEvent;
|
|
10
|
+
const cap = max !== void 0 && Number.isFinite(max) && max >= 0 ? max : 16;
|
|
11
|
+
return event.urls.map((raw, i) => {
|
|
12
|
+
if (i >= cap) return { url: raw, suppressed: "cap", eventType: event.eventType };
|
|
13
|
+
if (VAST_MACRO.test(raw)) return { url: raw, suppressed: "macro", eventType: event.eventType };
|
|
14
|
+
const url = new URL(raw);
|
|
15
|
+
if (!policy.authorities.includes(url.host)) return { url: raw, suppressed: "authority", eventType: event.eventType };
|
|
16
|
+
if (params.length > 0) url.search = url.search ? `${url.search}&${params.join("&")}` : `?${params.join("&")}`;
|
|
17
|
+
return { url: url.href, sendAtMs: nowMs + delay, eventType: event.eventType };
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
planAdBeacons
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=ad-beacon.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/ad-beacon.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Beacon planning for ad creative signaling (draft-riedl-moq-ad-creative-signaling-01 7, 12):\n * which URL to request and when. No I/O and no timers here (the cmcd-producer.ts precedent):\n * the player sends each plan at sendAtMs with\n * fetch(url, { mode: 'no-cors', credentials: 'omit', keepalive: true, referrerPolicy: 'no-referrer' }).\n * The player calls this only for events the timeline emitted, so only for verified records.\n */\nimport type { AdTrackEvent } from './ad-creative-timeline.js'\n\nexport interface AdBeaconPolicy {\n /** Lower-case host[:port] beacons may go to (riedl 12.1), typically the distributor's beacon proxy. Empty: nothing is sent. */\n readonly authorities: readonly string[]\n /** Uniform jitter window W in ms (riedl 7.2). Size it from the audience: W >= 1000 * N * k / C ms, for N receivers,\n * k requests each at that instant and C beacon-proxy requests/s. */\n readonly jitterMs: number\n /** Event types sent at once, unjittered: the verification-critical ones (riedl 7.2). */\n readonly immediate?: readonly string[]\n /** Pseudonymous, session-scoped client id appended as a query parameter (riedl 7.1). Never a device id. */\n readonly clientId?: { readonly param: string; readonly value: string }\n /** Query parameter carrying the event's wallclock ms on a jittered request (riedl 7.2). */\n readonly eventTimeParam?: string\n /** URLs sent per event at most; the rest are suppressed (riedl 12.2). Default 16, also used for a NaN, infinite or negative value. */\n readonly maxUrlsPerEvent?: number\n}\n\nexport type AdBeaconPlan =\n | { readonly url: string; readonly sendAtMs: number; readonly eventType: string }\n | { readonly url: string; readonly suppressed: 'authority' | 'cap' | 'macro'; readonly eventType: string }\n\n/** A VAST macro such as [CACHEBUSTING]: riedl 7's first pattern (client-side substitution) is not supported. */\nconst VAST_MACRO = /\\[[A-Z0-9_]+\\]/\n\n/** `random` gives the jitter phase in [0, 1). The player passes one phase drawn per session, so a device's events\n * keep their order and spacing while the audience still spreads uniformly over [0, W) (riedl 7.2). */\nexport function planAdBeacons(event: AdTrackEvent, policy: AdBeaconPolicy, nowMs: number, random: () => number = Math.random): AdBeaconPlan[] {\n const jittered = policy.jitterMs > 0 && !(policy.immediate ?? []).includes(event.eventType)\n const delay = jittered ? Math.floor(random() * policy.jitterMs) : 0\n const params: string[] = []\n if (policy.clientId) params.push(`${encodeURIComponent(policy.clientId.param)}=${encodeURIComponent(policy.clientId.value)}`)\n if (policy.eventTimeParam && jittered) params.push(`${encodeURIComponent(policy.eventTimeParam)}=${nowMs}`)\n // A malformed setting (NaN from Number(undefined)) must not turn the cap off: i >= NaN is always false.\n const max = policy.maxUrlsPerEvent\n const cap = max !== undefined && Number.isFinite(max) && max >= 0 ? max : 16\n return event.urls.map((raw, i): AdBeaconPlan => {\n if (i >= cap) return { url: raw, suppressed: 'cap', eventType: event.eventType }\n // Never sent unexpanded, and a device-identifier macro is never expanded (riedl 7.1, R33).\n if (VAST_MACRO.test(raw)) return { url: raw, suppressed: 'macro', eventType: event.eventType }\n const url = new URL(raw) // https and parseable: checked when the record was accepted (riedl 12.3)\n if (!policy.authorities.includes(url.host)) return { url: raw, suppressed: 'authority', eventType: event.eventType }\n // Append without re-encoding the capability URL's own query; a fragment stays last.\n if (params.length > 0) url.search = url.search ? `${url.search}&${params.join('&')}` : `?${params.join('&')}`\n return { url: url.href, sendAtMs: nowMs + delay, eventType: event.eventType }\n })\n}\n"],
|
|
5
|
+
"mappings": ";AA8BA,IAAM,aAAa;AAIZ,SAAS,cAAc,OAAqB,QAAwB,OAAe,SAAuB,KAAK,QAAwB;AAC5I,QAAM,WAAW,OAAO,WAAW,KAAK,EAAE,OAAO,aAAa,CAAC,GAAG,SAAS,MAAM,SAAS;AAC1F,QAAM,QAAQ,WAAW,KAAK,MAAM,OAAO,IAAI,OAAO,QAAQ,IAAI;AAClE,QAAM,SAAmB,CAAC;AAC1B,MAAI,OAAO,SAAU,QAAO,KAAK,GAAG,mBAAmB,OAAO,SAAS,KAAK,CAAC,IAAI,mBAAmB,OAAO,SAAS,KAAK,CAAC,EAAE;AAC5H,MAAI,OAAO,kBAAkB,SAAU,QAAO,KAAK,GAAG,mBAAmB,OAAO,cAAc,CAAC,IAAI,KAAK,EAAE;AAE1G,QAAM,MAAM,OAAO;AACnB,QAAM,MAAM,QAAQ,UAAa,OAAO,SAAS,GAAG,KAAK,OAAO,IAAI,MAAM;AAC1E,SAAO,MAAM,KAAK,IAAI,CAAC,KAAK,MAAoB;AAC9C,QAAI,KAAK,IAAK,QAAO,EAAE,KAAK,KAAK,YAAY,OAAO,WAAW,MAAM,UAAU;AAE/E,QAAI,WAAW,KAAK,GAAG,EAAG,QAAO,EAAE,KAAK,KAAK,YAAY,SAAS,WAAW,MAAM,UAAU;AAC7F,UAAM,MAAM,IAAI,IAAI,GAAG;AACvB,QAAI,CAAC,OAAO,YAAY,SAAS,IAAI,IAAI,EAAG,QAAO,EAAE,KAAK,KAAK,YAAY,aAAa,WAAW,MAAM,UAAU;AAEnH,QAAI,OAAO,SAAS,EAAG,KAAI,SAAS,IAAI,SAAS,GAAG,IAAI,MAAM,IAAI,OAAO,KAAK,GAAG,CAAC,KAAK,IAAI,OAAO,KAAK,GAAG,CAAC;AAC3G,WAAO,EAAE,KAAK,IAAI,MAAM,UAAU,QAAQ,OAAO,WAAW,MAAM,UAAU;AAAA,EAC9E,CAAC;AACH;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type AdCreativeKeys, type AdCreativeRecord, type AdIndex, type AdObjectDrop, type AdRecordDrop } from './ad-creative-record.js';
|
|
2
2
|
export * from './ad-creative-record.js';
|
|
3
|
+
export * from './ad-beacon.js';
|
|
3
4
|
export interface AdScheduledEvent {
|
|
4
5
|
/** Unique within a record: container key, tracking type and its occurrence. */
|
|
5
6
|
readonly eventKey: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ad-creative-timeline.d.ts","sourceRoot":"","sources":["../src/ad-creative-timeline.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,KAAK,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAC/F,MAAM,yBAAyB,CAAA;AAEhC,cAAc,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"ad-creative-timeline.d.ts","sourceRoot":"","sources":["../src/ad-creative-timeline.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,KAAK,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAC/F,MAAM,yBAAyB,CAAA;AAEhC,cAAc,yBAAyB,CAAA;AACvC,cAAc,gBAAgB,CAAA;AAE9B,MAAM,WAAW,gBAAgB;IAC/B,+EAA+E;IAC/E,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,wGAAwG;IACxG,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IAChC,QAAQ,CAAC,KAAK,E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;CAC5B;AAkCD;;;;;;GAMG;AACH,qBAAa,kBAAkB;;IAC7B,wGAAwG;IACxG,IAAI,EAAE,cAAc,CAAA;gBAYR,OAAO,EAAE,yBAAyB;IAO9C,WAAW,CAAC,QAAQ,EAAE,kBAAkB,GAAG,MAAM,IAAI;IAOrD,mGAAmG;IACnG,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,gBAAgB,GAAG,IAAI;IAmG3D,wGAAwG;IACxG,OAAO,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;CA6DnC"}
|
|
@@ -2266,6 +2266,26 @@ function parseAdCreativeObject(bytes, keys) {
|
|
|
2266
2266
|
return { verdict: "accepted", records: doc.map((record) => parseAdCreativeRecord(record, keys)) };
|
|
2267
2267
|
}
|
|
2268
2268
|
|
|
2269
|
+
// src/ad-beacon.ts
|
|
2270
|
+
var VAST_MACRO = /\[[A-Z0-9_]+\]/;
|
|
2271
|
+
function planAdBeacons(event, policy, nowMs, random = Math.random) {
|
|
2272
|
+
const jittered = policy.jitterMs > 0 && !(policy.immediate ?? []).includes(event.eventType);
|
|
2273
|
+
const delay = jittered ? Math.floor(random() * policy.jitterMs) : 0;
|
|
2274
|
+
const params = [];
|
|
2275
|
+
if (policy.clientId) params.push(`${encodeURIComponent(policy.clientId.param)}=${encodeURIComponent(policy.clientId.value)}`);
|
|
2276
|
+
if (policy.eventTimeParam && jittered) params.push(`${encodeURIComponent(policy.eventTimeParam)}=${nowMs}`);
|
|
2277
|
+
const max = policy.maxUrlsPerEvent;
|
|
2278
|
+
const cap = max !== void 0 && Number.isFinite(max) && max >= 0 ? max : 16;
|
|
2279
|
+
return event.urls.map((raw, i) => {
|
|
2280
|
+
if (i >= cap) return { url: raw, suppressed: "cap", eventType: event.eventType };
|
|
2281
|
+
if (VAST_MACRO.test(raw)) return { url: raw, suppressed: "macro", eventType: event.eventType };
|
|
2282
|
+
const url = new URL(raw);
|
|
2283
|
+
if (!policy.authorities.includes(url.host)) return { url: raw, suppressed: "authority", eventType: event.eventType };
|
|
2284
|
+
if (params.length > 0) url.search = url.search ? `${url.search}&${params.join("&")}` : `?${params.join("&")}`;
|
|
2285
|
+
return { url: url.href, sendAtMs: nowMs + delay, eventType: event.eventType };
|
|
2286
|
+
});
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2269
2289
|
// src/ad-creative-timeline.ts
|
|
2270
2290
|
var FRACTION = /* @__PURE__ */ new Map([
|
|
2271
2291
|
["podStart", 0],
|
|
@@ -2511,6 +2531,7 @@ export {
|
|
|
2511
2531
|
importAdCreativeJwks,
|
|
2512
2532
|
parseAdCreativeObject,
|
|
2513
2533
|
parseAdCreativeRecord,
|
|
2534
|
+
planAdBeacons,
|
|
2514
2535
|
scheduleAdRecord,
|
|
2515
2536
|
verifyAdCreativeSig
|
|
2516
2537
|
};
|