Function: isMetadataProperty()
function isMetadataProperty(name: string): boolean;
Defined in: packages/player/src/properties.ts:384
Whether a property change means "the current entry's metadata changed".
Both names are invalidated by mpv's single MP_EVENT_METADATA_UPDATE
(player/command.c: E(MP_EVENT_METADATA_UPDATE, "metadata", "filtered-metadata", "media-title")), and either arriving is enough. Two
triggers rather than one because mpv only re-emits an observed property when
its value compares unequal (player/client.c,
send_client_property_changes): if the metadata string read ever fails —
which is what the manual says should happen — that observation goes quiet
after its initial event, and media-title still carries ICY now-playing
changes.
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
boolean