Skip to main content

Function: setContentUriOpener()

function setContentUriOpener(next: ContentUriOpener | undefined): void;

Defined in: packages/player/src/content-uri.ts:221

Replace the platform opener.

Parameters

ParameterTypeDescription
nextContentUriOpener | undefinedThe opener to use, or undefined to go back to the platform's (re-resolved on the next call).

Returns

void

Remarks

Exists for tests and for an app whose content:// reads have to go through its own code — a provider that needs a header, a decryption shim. Install it before the first content:// load; a player that already resolved one keeps the descriptors it minted.