Requires a little bit of massaging for the key/value access to work correctly, it's not terribly intrusive all things considered.
Showing the changes to DOCS (2 of 4 files). Show all
Unified · Split
| @@ -0,0 +1 @@ | |||
| 1 | add `metadata` sub-property for `track-list` | ||
| @@ -3373,6 +3373,10 @@ Property list · 3372 unmodified lines | |||
| 3373 | Dolby Vision profile and level. May not be available if the container | 3373 | 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 with | 3381 | 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_DOUBLE | 3430 | "replaygain-album-gain" MPV_FORMAT_DOUBLE |
| 3427 | "dolby-vision-profile" MPV_FORMAT_INT64 | 3431 | "dolby-vision-profile" MPV_FORMAT_INT64 |
| 3428 | "dolby-vision-level" MPV_FORMAT_INT64 | 3432 | "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 correct | 3437 | This gives access to currently selected tracks. It redirects to the correct |