History

command: add metadata sub-property for track-list

Requires a little bit of massaging for the key/value access to work correctly, it's not terribly intrusive all things considered.

Dudemanguy committed 1 year ago

Commit 814316f1 parent 5c326264 files · +44 −1Browse files

Showing the changes to DOCS (2 of 4 files). Show all

Unified · Split

2 files
  1. DOCS/interface-changes/track-metadata.txt +1 −0
  2. DOCS/man/input.rst +6 −0
DOCS/interface-changes/track-metadata.txt+1−0
@@ -0,0 +1 @@
1+add `metadata` sub-property for `track-list`
DOCS/man/input.rst+6−0
@@ -3373,6 +3373,10 @@ Property list · 3372 unmodified lines
33733373 Dolby Vision profile and level. May not be available if the container
33743374 does not provide this information.
33753375
3376+ ``track-list/N/metadata``,
3377+ Works like the ``metadata`` property, but it accesses metadata that is
3378+ set per track/stream instead of global values for the entire file.
3379+
33763380 When querying the property with the client API using ``MPV_FORMAT_NODE``,
33773381 or with Lua ``mp.get_property_native``, this will return a mpv_node with
33783382 the following contents:
@@ -3426,6 +3430,8 @@ Property list · 47 unmodified lines
34263430 "replaygain-album-gain" MPV_FORMAT_DOUBLE
34273431 "dolby-vision-profile" MPV_FORMAT_INT64
34283432 "dolby-vision-level" MPV_FORMAT_INT64
3433+ "metadata" MPV_FORMAT_NODE_MAP
3434+ (key and string value for each metadata entry)
34293435
34303436 ``current-tracks/...``
34313437 This gives access to currently selected tracks. It redirects to the correct

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t