@blockcast/mmt-transport 2.1.0 → 2.2.0-main.73af0eedcbc8

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.
@@ -0,0 +1,43 @@
1
+ /**
2
+ * The browser's own `MulticastReceiver` (Chromium and Firefox, branch
3
+ * `mcast-hackathon`) behind the `window.multicast` gateway surface.
4
+ *
5
+ * The user agent verifies the in-band bc-provenance v2 (`MHM2`) records
6
+ * itself and delivers only verified data, so the records never reach the
7
+ * page. A datagram from this provider is therefore already admitted: the
8
+ * consumer marks its ingress with {@link userAgentVerifiedIngress} and the
9
+ * MMTP router in `@blockcast/mmt-container` reads it as admitted.
10
+ *
11
+ * libmmt bundles this file into several copies that one document loads (each
12
+ * container `dist` entry inlines it, beside transport's own `dist` and its
13
+ * no-modules IIFE). The provider identity therefore lives in one realm-wide
14
+ * slot keyed by `Symbol.for`, installed by whichever copy runs first, so every
15
+ * copy sees one provider, and one open gate, per scope.
16
+ */
17
+ import type { WindowMulticastGateway } from "./types.js";
18
+ /**
19
+ * The mark an ingress carries in `admittedBy` when its datagram came from the
20
+ * user agent's own `MulticastReceiver`. A symbol, so no structured-cloned or
21
+ * serialised data can carry it.
22
+ */
23
+ export declare const USER_AGENT_VERIFIED: unique symbol;
24
+ /** A multicast-contract error: `code` names the outcome, `cause` the DOMException. */
25
+ export declare class MulticastError extends Error {
26
+ readonly code: "capability-unsupported" | "subscription-failed" | "origin-not-trusted";
27
+ constructor(code: MulticastError["code"], message: string, cause?: unknown);
28
+ }
29
+ /**
30
+ * The multicast gateway for `scope`: the user agent's `MulticastReceiver`
31
+ * when it exists (one provider per scope for the realm), else
32
+ * `scope.multicast`, else undefined.
33
+ */
34
+ export declare function resolveMulticastGateway(scope?: object): WindowMulticastGateway | undefined;
35
+ /** Whether `gateway` is a native `MulticastReceiver` provider of this realm. */
36
+ export declare function isUserAgentVerifiedGateway(gateway: unknown): boolean;
37
+ /**
38
+ * `ingress` marked as admitted by the user agent, when `gateway` is a native
39
+ * provider; otherwise `ingress` without an `admittedBy` field (itself when it
40
+ * has none). Never copies a mark from anywhere: this is its only source.
41
+ */
42
+ export declare function userAgentVerifiedIngress<T extends object>(ingress: T, gateway: unknown): T;
43
+ //# sourceMappingURL=multicast-receiver-gateway.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multicast-receiver-gateway.d.ts","sourceRoot":"","sources":["../src/multicast-receiver-gateway.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,KAAK,EACX,sBAAsB,EAItB,MAAM,YAAY,CAAC;AASpB;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,OAAO,MAE/B,CAAC;AAKX,sFAAsF;AACtF,qBAAa,cAAe,SAAQ,KAAK;IACxC,QAAQ,CAAC,IAAI,EAAE,wBAAwB,GAAG,qBAAqB,GAAG,oBAAoB,CAAC;gBAC3E,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO;CAK1E;AAgED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,GAAE,MAAmB,GAAG,sBAAsB,GAAG,SAAS,CAKtG;AAED,gFAAgF;AAChF,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEpE;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,CAAC,CAK1F"}
@@ -0,0 +1,251 @@
1
+ /**
2
+ * The browser's own `MulticastReceiver` (Chromium and Firefox, branch
3
+ * `mcast-hackathon`) behind the `window.multicast` gateway surface.
4
+ *
5
+ * The user agent verifies the in-band bc-provenance v2 (`MHM2`) records
6
+ * itself and delivers only verified data, so the records never reach the
7
+ * page. A datagram from this provider is therefore already admitted: the
8
+ * consumer marks its ingress with {@link userAgentVerifiedIngress} and the
9
+ * MMTP router in `@blockcast/mmt-container` reads it as admitted.
10
+ *
11
+ * libmmt bundles this file into several copies that one document loads (each
12
+ * container `dist` entry inlines it, beside transport's own `dist` and its
13
+ * no-modules IIFE). The provider identity therefore lives in one realm-wide
14
+ * slot keyed by `Symbol.for`, installed by whichever copy runs first, so every
15
+ * copy sees one provider, and one open gate, per scope.
16
+ */
17
+ import { readMMTPPacketId } from "@blockcast/mmt-base";
18
+ // `/v1` is the provider contract's version: a copy with a changed contract
19
+ // takes a new key, so it never shares another version's provider.
20
+ // ponytail: one version per page in the player origin (all its bundles come
21
+ // from pim's one libmmt gitlink); a version handshake only if mixed versions
22
+ // ever share a page.
23
+ const REGISTRY = Symbol.for("@blockcast/mmt-transport/native-provider-registry/v1");
24
+ /**
25
+ * The mark an ingress carries in `admittedBy` when its datagram came from the
26
+ * user agent's own `MulticastReceiver`. A symbol, so no structured-cloned or
27
+ * serialised data can carry it.
28
+ */
29
+ export const USER_AGENT_VERIFIED = Symbol.for("@blockcast/mmt-transport/user-agent-verified/v1");
30
+ /** The one integrity scheme this provider vouches for. */
31
+ const INTEGRITY_SCHEME = "manifest-ed25519-2";
32
+ /** A multicast-contract error: `code` names the outcome, `cause` the DOMException. */
33
+ export class MulticastError extends Error {
34
+ code;
35
+ constructor(code, message, cause) {
36
+ super(message, cause === undefined ? undefined : { cause });
37
+ this.name = "MulticastError";
38
+ this.code = code;
39
+ }
40
+ }
41
+ // ponytail: the chunk and close-reason shapes are read tolerantly (array or
42
+ // `{datagrams}`, `Uint8Array` or `{data}`, string or `{reason}`); pin them to
43
+ // the prototype IDL once it is published.
44
+ function datagramsOf(chunk) {
45
+ const list = Array.isArray(chunk) ? chunk : chunk?.datagrams ?? [];
46
+ const out = [];
47
+ for (const d of list) {
48
+ const data = d instanceof Uint8Array || d instanceof ArrayBuffer ? d : d?.data;
49
+ if (data instanceof Uint8Array)
50
+ out.push(data);
51
+ else if (data instanceof ArrayBuffer)
52
+ out.push(new Uint8Array(data));
53
+ }
54
+ return out;
55
+ }
56
+ function reasonOf(value) {
57
+ return typeof value === "object" && value !== null && "reason" in value ? value.reason : value;
58
+ }
59
+ function registry() {
60
+ const g = globalThis;
61
+ if (g[REGISTRY] === undefined) {
62
+ const providers = new WeakSet(); // closure-private: no add() is ever exposed
63
+ const byScope = new WeakMap();
64
+ Object.defineProperty(g, REGISTRY, {
65
+ value: Object.freeze({
66
+ isProvider: (x) => typeof x === "object" && x !== null && providers.has(x),
67
+ providerFor: (scope) => {
68
+ let provider = byScope.get(scope);
69
+ if (provider === undefined) {
70
+ provider = createProvider(scope);
71
+ providers.add(provider);
72
+ byScope.set(scope, provider);
73
+ }
74
+ return provider;
75
+ },
76
+ }),
77
+ writable: false,
78
+ configurable: false,
79
+ enumerable: false,
80
+ });
81
+ }
82
+ return g[REGISTRY];
83
+ }
84
+ /**
85
+ * The multicast gateway for `scope`: the user agent's `MulticastReceiver`
86
+ * when it exists (one provider per scope for the realm), else
87
+ * `scope.multicast`, else undefined.
88
+ */
89
+ export function resolveMulticastGateway(scope = globalThis) {
90
+ const s = scope;
91
+ if (typeof s.MulticastReceiver === "function")
92
+ return registry().providerFor(scope);
93
+ if (typeof s.multicast?.subscribe === "function")
94
+ return s.multicast;
95
+ return undefined;
96
+ }
97
+ /** Whether `gateway` is a native `MulticastReceiver` provider of this realm. */
98
+ export function isUserAgentVerifiedGateway(gateway) {
99
+ return registry().isProvider(gateway);
100
+ }
101
+ /**
102
+ * `ingress` marked as admitted by the user agent, when `gateway` is a native
103
+ * provider; otherwise `ingress` without an `admittedBy` field (itself when it
104
+ * has none). Never copies a mark from anywhere: this is its only source.
105
+ */
106
+ export function userAgentVerifiedIngress(ingress, gateway) {
107
+ if (isUserAgentVerifiedGateway(gateway))
108
+ return { ...ingress, admittedBy: USER_AGENT_VERIFIED };
109
+ if (!("admittedBy" in ingress))
110
+ return ingress;
111
+ const { admittedBy: _, ...rest } = ingress;
112
+ return rest;
113
+ }
114
+ function unsupported(message, cause) {
115
+ return new MulticastError("capability-unsupported", message, cause);
116
+ }
117
+ function createProvider(scope) {
118
+ // Captured once: a later reassignment never reaches this provider.
119
+ const Receiver = scope.MulticastReceiver;
120
+ // The first construction runs alone: Gecko consumes transient activation
121
+ // on every open, and after the first grant neither browser needs it.
122
+ let gate = null;
123
+ return {
124
+ capabilities: () => Promise.resolve({ consumeModes: ["bytes"] }),
125
+ subscribe: async (config) => {
126
+ const c = config;
127
+ if (c.consume !== "bytes")
128
+ throw unsupported(`consume mode ${String(c.consume)} is not supported`);
129
+ const origin = c.origin ?? "ip-multicast";
130
+ if (origin !== "ip-multicast" && !(origin === "amt" && c.discovery === "driad")) {
131
+ throw unsupported(`origin ${String(origin)} is not supported by MulticastReceiver`);
132
+ }
133
+ if (c.relay !== undefined)
134
+ throw unsupported("MulticastReceiver picks its own AMT relay");
135
+ if (!c.source)
136
+ throw unsupported("MulticastReceiver needs an SSM source");
137
+ if (c.senderAddress !== undefined && c.senderAddress !== c.source) {
138
+ throw unsupported("MulticastReceiver filters by source only");
139
+ }
140
+ const options = { sourceAddress: c.source, groupAddress: c.group, localPort: c.port };
141
+ if (gate !== null)
142
+ await gate;
143
+ let rx;
144
+ try {
145
+ rx = new Receiver(options);
146
+ }
147
+ catch (error) {
148
+ throw unsupported("MulticastReceiver refused the request", error);
149
+ }
150
+ const opened = rx.opened;
151
+ if (gate === null)
152
+ gate = opened.then(() => undefined, () => undefined);
153
+ return openSubscription(rx, opened, options, c.packetIds);
154
+ },
155
+ };
156
+ }
157
+ async function openSubscription(rx, openedPromise, options, packetIds) {
158
+ let opened;
159
+ try {
160
+ opened = await openedPromise;
161
+ }
162
+ catch (error) {
163
+ throw new MulticastError("subscription-failed", "MulticastReceiver did not open", error);
164
+ }
165
+ if (rx.integrityScheme !== INTEGRITY_SCHEME) {
166
+ await rx.close();
167
+ throw unsupported(`integrity scheme ${String(rx.integrityScheme)} is not ${INTEGRITY_SCHEME}`);
168
+ }
169
+ const events = new EventTarget();
170
+ let state = "connected";
171
+ let filter = packetIds?.length ? new Set(packetIds) : null;
172
+ let closing = false;
173
+ const setState = (next) => {
174
+ if (state === next)
175
+ return;
176
+ state = next;
177
+ events.dispatchEvent(new CustomEvent("state", { detail: next }));
178
+ };
179
+ const sourceAddress = options.sourceAddress;
180
+ const subscription = {
181
+ id: `${options.sourceAddress}|${options.groupAddress}|${options.localPort}`,
182
+ get state() {
183
+ return state;
184
+ },
185
+ delivery: "datagram",
186
+ eventTypes: Object.freeze(["bytes", "packets", "state", "error"]),
187
+ setPacketIds(ids) {
188
+ filter = ids.length ? new Set(ids) : null;
189
+ },
190
+ addEventListener: events.addEventListener.bind(events),
191
+ removeEventListener: events.removeEventListener.bind(events),
192
+ async unsubscribe() {
193
+ closing = true;
194
+ await rx.close();
195
+ setState("closed");
196
+ },
197
+ };
198
+ void (async () => {
199
+ const reader = opened.readable.getReader();
200
+ try {
201
+ for (;;) {
202
+ const { value, done } = await reader.read();
203
+ if (done)
204
+ break;
205
+ const packets = [];
206
+ for (const data of datagramsOf(value)) {
207
+ if (filter !== null) {
208
+ const id = readMMTPPacketId(data);
209
+ if (id === null || !filter.has(id))
210
+ continue;
211
+ }
212
+ // A chunk's datagrams are views into one ArrayBuffer.
213
+ // ponytail: one copy per datagram; zero-copy only if a profile shows it.
214
+ const copy = data.slice().buffer;
215
+ packets.push(copy);
216
+ events.dispatchEvent(Object.assign(new CustomEvent("bytes", { detail: copy }), { sourceAddress }));
217
+ }
218
+ if (packets.length > 0)
219
+ events.dispatchEvent(new CustomEvent("packets", { detail: packets }));
220
+ }
221
+ }
222
+ catch {
223
+ // The receiver closed; `closed` reports why.
224
+ }
225
+ })();
226
+ void rx.closed.then((value) => {
227
+ const reason = reasonOf(value);
228
+ if (!closing) {
229
+ if (reason === "consent-withdrawn") {
230
+ events.dispatchEvent(new CustomEvent("error", {
231
+ detail: new MulticastError("origin-not-trusted", "multicast consent withdrawn"),
232
+ }));
233
+ }
234
+ else if (reason === "oversubscribed" || reason === "network") {
235
+ events.dispatchEvent(new CustomEvent("error", {
236
+ detail: new MulticastError("subscription-failed", `MulticastReceiver closed: ${reason}`),
237
+ }));
238
+ }
239
+ }
240
+ setState("closed");
241
+ }, (error) => {
242
+ if (!closing) {
243
+ events.dispatchEvent(new CustomEvent("error", {
244
+ detail: new MulticastError("subscription-failed", "MulticastReceiver failed", error),
245
+ }));
246
+ }
247
+ setState("closed");
248
+ });
249
+ return subscription;
250
+ }
251
+ //# sourceMappingURL=multicast-receiver-gateway.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multicast-receiver-gateway.js","sourceRoot":"","sources":["../src/multicast-receiver-gateway.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAQvD,2EAA2E;AAC3E,kEAAkE;AAClE,4EAA4E;AAC5E,6EAA6E;AAC7E,qBAAqB;AACrB,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,sDAAsD,CAAC,CAAC;AAEpF;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAkB,MAAM,CAAC,GAAG,CAC3D,iDAAiD,CACxC,CAAC;AAEX,0DAA0D;AAC1D,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AAE9C,sFAAsF;AACtF,MAAM,OAAO,cAAe,SAAQ,KAAK;IAC/B,IAAI,CAA0E;IACvF,YAAY,IAA4B,EAAE,OAAe,EAAE,KAAe;QACzE,KAAK,CAAC,OAAO,EAAE,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QAC5D,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IAClB,CAAC;CACD;AAED,4EAA4E;AAC5E,8EAA8E;AAC9E,0CAA0C;AAC1C,SAAS,WAAW,CAAC,KAAc;IAClC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chestrator } from "./multicast-orchestrator.js";
4
4
  import { catalogTierEndpoints, endpointToMulticastConfig, hasMulticastCatalogBaseline, hasUnicastMediaRenditions, isMulticastOnlyCatalog, isRecoverableMulticastSignalReadError, mergeUrlMulticastPolicy, normalizeMulticastConfig, readPlayerMulticastConfig, requiresMulticastCapability, sameMulticastConfig, selectEndpointPacketIds, selectMulticastCandidate, selectRepairEndpointsForTracks, catalogQualityLadder, urlOverrideBlocksMulticastCandidate, withCatalogNamespace, withMulticastEndpoints } from "./multicast-catalog-policy.js";
5
5
  import { createMulticastSignalingReconciler, normalizeCatalogEndpoints } from "./multicast-signaling-reconciler.js";
6
+ import { isUserAgentVerifiedGateway, MulticastError, resolveMulticastGateway, userAgentVerifiedIngress } from "./multicast-receiver-gateway.js";
6
7
  import { MulticastSubscriptionPool } from "./multicast-subscription-pool.js";
7
8
  import { endpointKey, selectMulticastTier } from "./multicast-tier.js";
8
9
  import { moqtPublisherPriority, moqtSubscriberPriority } from "./moqt-priority.js";
@@ -22,6 +23,8 @@ declare const api: {
22
23
  hasUnicastMediaRenditions: typeof hasUnicastMediaRenditions;
23
24
  isRecoverableMulticastSignalReadError: typeof isRecoverableMulticastSignalReadError;
24
25
  isMulticastOnlyCatalog: typeof isMulticastOnlyCatalog;
26
+ isUserAgentVerifiedGateway: typeof isUserAgentVerifiedGateway;
27
+ MulticastError: typeof MulticastError;
25
28
  MulticastOrchestrator: typeof MulticastOrchestrator;
26
29
  MulticastSubscriptionPool: typeof MulticastSubscriptionPool;
27
30
  MOQT_PUBLISHER_PRIORITY: Readonly<{
@@ -52,6 +55,7 @@ declare const api: {
52
55
  normalizeMulticastEndpoint: typeof normalizeMulticastEndpoint;
53
56
  readPlayerMulticastConfig: typeof readPlayerMulticastConfig;
54
57
  readUrlMulticastConfig: typeof readUrlMulticastConfig;
58
+ resolveMulticastGateway: typeof resolveMulticastGateway;
55
59
  toWindowMulticastSubscribeConfig: typeof toWindowMulticastSubscribeConfig;
56
60
  requiresMulticastCapability: typeof requiresMulticastCapability;
57
61
  runUnicastFallback: typeof runUnicastFallback;
@@ -61,6 +65,8 @@ declare const api: {
61
65
  selectMulticastTier: typeof selectMulticastTier;
62
66
  selectRepairEndpointsForTracks: typeof selectRepairEndpointsForTracks;
63
67
  urlOverrideBlocksMulticastCandidate: typeof urlOverrideBlocksMulticastCandidate;
68
+ USER_AGENT_VERIFIED: symbol;
69
+ userAgentVerifiedIngress: typeof userAgentVerifiedIngress;
64
70
  withCatalogNamespace: typeof withCatalogNamespace;
65
71
  withMulticastEndpoints: typeof withMulticastEndpoints;
66
72
  wireStarvationDetector: typeof wireStarvationDetector;
@@ -1 +1 @@
1
- {"version":3,"file":"no-modules.d.ts","sourceRoot":"","sources":["../src/no-modules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EACN,6BAA6B,EAC7B,yBAAyB,EACzB,4BAA4B,EAC5B,oBAAoB,EACpB,0BAA0B,EAC1B,sBAAsB,EACtB,gCAAgC,EAChC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EACN,oBAAoB,EACpB,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,sBAAsB,EACtB,qCAAqC,EACrC,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,2BAA2B,EAC3B,mBAAmB,EACnB,uBAAuB,EACvB,wBAAwB,EACxB,8BAA8B,EAC9B,oBAAoB,EACpB,mCAAmC,EACnC,oBAAoB,EACpB,sBAAsB,EACtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACN,kCAAkC,EAClC,yBAAyB,EACzB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;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AACzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAGN,qBAAqB,EACrB,sBAAsB,EACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDR,CAAC;AASF,eAAe,GAAG,CAAC"}
@@ -3,6 +3,7 @@ import { isMulticastExplicitlyDisabled, isUsableMulticastEndpoint, isValidMultic
3
3
  import { MulticastOrchestrator } from "./multicast-orchestrator.js";
4
4
  import { catalogTierEndpoints, endpointToMulticastConfig, hasMulticastCatalogBaseline, hasUnicastMediaRenditions, isMulticastOnlyCatalog, isRecoverableMulticastSignalReadError, mergeUrlMulticastPolicy, normalizeMulticastConfig, readPlayerMulticastConfig, requiresMulticastCapability, sameMulticastConfig, selectEndpointPacketIds, selectMulticastCandidate, selectRepairEndpointsForTracks, catalogQualityLadder, urlOverrideBlocksMulticastCandidate, withCatalogNamespace, withMulticastEndpoints, } from "./multicast-catalog-policy.js";
5
5
  import { createMulticastSignalingReconciler, normalizeCatalogEndpoints, } from "./multicast-signaling-reconciler.js";
6
+ import { isUserAgentVerifiedGateway, MulticastError, resolveMulticastGateway, USER_AGENT_VERIFIED, userAgentVerifiedIngress, } from "./multicast-receiver-gateway.js";
6
7
  import { MulticastSubscriptionPool } from "./multicast-subscription-pool.js";
7
8
  import { endpointKey, selectMulticastTier } from "./multicast-tier.js";
8
9
  import { MOQT_PUBLISHER_PRIORITY, MOQT_SUBSCRIBER_PRIORITY, moqtPublisherPriority, moqtSubscriberPriority, } from "./moqt-priority.js";
@@ -22,6 +23,8 @@ const api = {
22
23
  hasUnicastMediaRenditions,
23
24
  isRecoverableMulticastSignalReadError,
24
25
  isMulticastOnlyCatalog,
26
+ isUserAgentVerifiedGateway,
27
+ MulticastError,
25
28
  MulticastOrchestrator,
26
29
  MulticastSubscriptionPool,
27
30
  MOQT_PUBLISHER_PRIORITY,
@@ -42,6 +45,7 @@ const api = {
42
45
  normalizeMulticastEndpoint,
43
46
  readPlayerMulticastConfig,
44
47
  readUrlMulticastConfig,
48
+ resolveMulticastGateway,
45
49
  toWindowMulticastSubscribeConfig,
46
50
  requiresMulticastCapability,
47
51
  runUnicastFallback,
@@ -51,6 +55,8 @@ const api = {
51
55
  selectMulticastTier,
52
56
  selectRepairEndpointsForTracks,
53
57
  urlOverrideBlocksMulticastCandidate,
58
+ USER_AGENT_VERIFIED,
59
+ userAgentVerifiedIngress,
54
60
  withCatalogNamespace,
55
61
  withMulticastEndpoints,
56
62
  wireStarvationDetector,
@@ -1 +1 @@
1
- {"version":3,"file":"no-modules.js","sourceRoot":"","sources":["../src/no-modules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EACN,6BAA6B,EAC7B,yBAAyB,EACzB,4BAA4B,EAC5B,oBAAoB,EACpB,0BAA0B,EAC1B,sBAAsB,EACtB,gCAAgC,GAChC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EACN,oBAAoB,EACpB,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,sBAAsB,EACtB,qCAAqC,EACrC,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,2BAA2B,EAC3B,mBAAmB,EACnB,uBAAuB,EAC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AC,CAAC;AAEH,eAAe,GAAG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockcast/mmt-transport",
3
- "version": "2.1.0",
3
+ "version": "2.2.0-main.73af0eedcbc8",
4
4
  "description": "Unified transport manager for MoQ with WebTransport, SSM multicast, AMT, DRIAD, and FEC support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -46,7 +46,7 @@
46
46
  "test:watch": "vitest"
47
47
  },
48
48
  "dependencies": {
49
- "@blockcast/mmt-base": "^2.1.0"
49
+ "@blockcast/mmt-base": "2.2.0-main.73af0eedcbc8"
50
50
  },
51
51
  "devDependencies": {
52
52
  "esbuild": "^0.21.5",
package/src/index.ts CHANGED
@@ -164,6 +164,13 @@ export {
164
164
  } from "./endpoint-config.js";
165
165
 
166
166
  export { subscriptionDeliversPacketBatches } from "./packet-batch.js";
167
+ export {
168
+ isUserAgentVerifiedGateway,
169
+ MulticastError,
170
+ resolveMulticastGateway,
171
+ USER_AGENT_VERIFIED,
172
+ userAgentVerifiedIngress,
173
+ } from "./multicast-receiver-gateway.js";
167
174
 
168
175
  export {
169
176
  MulticastSubscriptionPool,