Function: playlistFilenameProperty()
function playlistFilenameProperty(index: number): string;
Defined in: packages/player/src/properties.ts:300
The property that yields the logical URI of the index-th playlist entry.
mpv input.rst: "playlist/N/filename — Filename of the Nth entry." It is
the string that was passed to loadfile, unchanged: a load hook rewrites
stream-open-filename on the way to the stream layer and never touches the
playlist, so this stays the key a resolver's answer is cached under no matter
how many times the entry has been resolved.
Read on demand — two reads when the queue moves — rather than observed:
playlist entries do not change under us, and observing playlist as a whole
would deliver a node this library has no use for.
Parameters
| Parameter | Type | Description |
|---|---|---|
index | number | 0-based playlist index, < playlist-count. |
Returns
string