Skip to main content

Interface: SourceResolutionRequest

Defined in: packages/player/src/specs/mpv-client.nitro.ts:145

mpv is about to open a source and does not know its concrete URL yet.

Remarks

Delivered on a channel of its own rather than inside the event batch. A batch is handed to JavaScript one at a time behind a completion promise, and a play-time request is holding mpv's core open while it waits — so making it queue behind unrelated JavaScript would charge that work to a stall.

Properties

entryId?

readonly optional entryId?: number;

Defined in: packages/player/src/specs/mpv-client.nitro.ts:161

mpv's playlist entry id for the entry being prefetched.

Present only on the prefetch path, because that is the only place it exists: at prefetch time mpv has not sent MPV_EVENT_START_FILE for the entry and playlist-current-pos still points at the track that is playing, so the fork exposes the id as a property readable while the prefetch hook is open and nowhere else. A play-time request carries no id, and its absence is therefore also the signal for "this one is blocking mpv".


uri

readonly uri: string;

Defined in: packages/player/src/specs/mpv-client.nitro.ts:150

The logical URL mpv is about to open — the string that is in the playlist, read back from stream-open-filename.