Skip to main content

Interface: ContentUriOpener

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

What ContentUriResolver needs from the platform. One method to open, one to close.

An interface rather than the HybridObject itself so the whole rewrite — the caching, the eviction, the stability guarantee — is unit-testable in Node without a device. See src/__tests__/content-uri.test.ts.

Methods

close()

close(fd: number): void;

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

Release a descriptor from open. Must not throw.

Parameters

ParameterType
fdnumber

Returns

void


open()

open(uri: string): number;

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

Open for reading; returns an owned file descriptor. Throws on failure.

Parameters

ParameterType
uristring

Returns

number