mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
13 lines
581 B
TypeScript
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
|