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 @@
1add `metadata` sub-property for `track-list`
DOCS/man/input.rst+6−0
@@ -3373,6 +3373,10 @@ Property list · 3372 unmodified lines
3373 Dolby Vision profile and level. May not be available if the container3373 Dolby Vision profile and level. May not be available if the container
3374 does not provide this information.3374 does not provide this information.
3375 3375
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
3376 When querying the property with the client API using ``MPV_FORMAT_NODE``,3380 When querying the property with the client API using ``MPV_FORMAT_NODE``,
3377 or with Lua ``mp.get_property_native``, this will return a mpv_node with3381 or with Lua ``mp.get_property_native``, this will return a mpv_node with
3378 the following contents:3382 the following contents:
@@ -3426,6 +3430,8 @@ Property list · 47 unmodified lines
3426 "replaygain-album-gain" MPV_FORMAT_DOUBLE3430 "replaygain-album-gain" MPV_FORMAT_DOUBLE
3427 "dolby-vision-profile" MPV_FORMAT_INT643431 "dolby-vision-profile" MPV_FORMAT_INT64
3428 "dolby-vision-level" MPV_FORMAT_INT643432 "dolby-vision-level" MPV_FORMAT_INT64
3433 "metadata" MPV_FORMAT_NODE_MAP
3434 (key and string value for each metadata entry)
3429 3435
3430``current-tracks/...``3436``current-tracks/...``
3431 This gives access to currently selected tracks. It redirects to the correct3437 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