Skip to main content

Function: isNetworkUri()

function isNetworkUri(uri: string | undefined): boolean;

Defined in: packages/player/src/errors.ts:271

Whether a source URI is fetched over the network.

Used to distinguish a premature network EOF (network) from a local file that simply could not be opened (load-failed) — mpv reports both with the same error number.

Parameters

ParameterTypeDescription
uristring | undefinedThe source URI, or undefined when unknown.

Returns

boolean