show-osd.lua 341 B

1234567891011
  1. function al_show_osd (_event)
  2. mp.commandv("show-text",
  3. mp.get_property_osd("duration")
  4. .. " (" .. mp.get_property_osd("file-size") .. ")\n" ..
  5. mp.get_property("filename/no-ext"),
  6. 4000)
  7. end
  8. mp.register_event("file-loaded", al_show_osd)
  9. mp.add_key_binding("b", al_show_osd)