Add ability to dynamically change speedup

This commit is contained in:
zenyd 2017-09-15 14:45:55 +02:00
parent d11b8af6bf
commit fd6c5056c1
1 changed files with 7 additions and 0 deletions

View File

@ -110,5 +110,12 @@ function pause(e,v)
end
end
function change_speedup(v)
speedup = speedup + v
mp.osd_message("speedup: "..speedup)
end
mp.observe_property("pause", "native", pause)
mp.add_key_binding("ctrl+j", "toggle_speedtrans", toggle)
mp.add_key_binding("alt++", "increase_speedup", function() change_speedup(0.1) end)
mp.add_key_binding("alt+-", "decrease_speedup", function() change_speedup(-0.1) end)