summaryrefslogtreecommitdiffstats
path: root/TOOLS/lua/observe-all.lua
blob: 9bfdf4499275943c12387ffa6bea6aac35701c46 (plain)
1
2
3
4
5
6
7
8
9
10
-- Test script for property change notification mechanism.

local utils = require("mp.utils")

for i,name in ipairs(mp.get_property_native("property-list")) do
    mp.observe_property(name, "native", function(name, val)
        print("property '" .. name .. "' changed to '" ..
              utils.to_string(val) .. "'")
    end)
end