blob: 4ef7700b7c83582831c43d8f15c9cdc97e86b33e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
local function showChapterTitle()
local chapterTitle = mp.get_property_osd("chapter-metadata/by-key/title")
mp.osd_message(chapterTitle, 4)
end
local function startObserving()
mp.observe_property("chapter", nil, showChapterTitle)
end
mp.add_key_binding("Ctrl+p", "showChapter", startObserving)
|