Files
v10/dist/dev/media/utils/cdn.d.ts
T

13 lines
581 B
TypeScript

//#region src/media/utils/cdn.d.ts
/**
* Derive a stable grouping key for the CDN a URL is served from. Synchronous and
* pure (deliberately not a `resolve*` — no fetch). Consumers override the
* default via the engine's `getCdnId` config (e.g. to key on Mux's `cdn=` query
* param instead of the host); every CDN-identity site reads that same function
* so keys stay comparable across `cdnPriority`, `failedCdns`, and the
* track-switching constraint + scope.
*/
type GetCdnId = (url: string) => string;
//#endregion
export { GetCdnId };
//# sourceMappingURL=cdn.d.ts.map