How to get the name of the currently playing chapter of an mkv?
#1
Player.Chapter returns the chapter number to the skin, but how do I get the Name of the currently playing chapter?  (and perhaps the name of the next chapter if the infolabel supports an offset)

I can see in the bookmarks dialog that it lists the chapters with the names, so Kodi is getting that info, but I'm stumped on how to get the name of the currently playing chapter so that I can display it in the OSD. 

That would be especially useful for things like music BDA rips or concert videos, etc.

Any ideas?
Reply
#2
No such info label exists unfortunately.
Reply
#3
(2024-12-24, 10:56)Hitcher Wrote: No such info label exists unfortunately.
I don't think that is correct. Transparency! shows chapter titles...

Image

Image
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#4
Interesting. BRB.

EDIT: So it does exist but I can't find it mentioned anywhere in the skining thread or on the Info Label page!

Player.ChapterName
Reply
#5
(2024-12-24, 12:04)Hitcher Wrote: Interesting. BRB.

EDIT: So it does exist but I can't find it mentioned anywhere in the skining thread or on the Info Label page!

Player.ChapterName

Yep, the wiki is out of date. Use the Doxygen Docs, it's listed there:-

https://xbmc.github.io/docs.kodi.tv/mast...index.html
Reply
#6
Got a link please, I can't find it.
Reply
#7
You can't deep link to an item, but it's in:-

General Development parts -> Infolabels and Boolean conditions -> List of Infolables and Boolean conditions -> Player

Unfortunately the doxygen search function is pretty useless Sad

Image
Reply
#8
(2024-12-24, 21:15)roidy Wrote: Unfortunately the doxygen search function is pretty useless
So it seems, thanks for pointing me in the right direction.
Reply

Logout Mark Read Team Forum Stats Members Help
How to get the name of the currently playing chapter of an mkv?0