Kodi Development  20.0
for Binary and Script based Add-Ons

Detailed Description

Used to get available chapters.

Note
These are used and must be set by the addon if the INPUTSTREAM_SUPPORTS_ICHAPTER is set in the capabilities (see GetCapabilities()).

Function Documentation

◆ GetChapter()

virtual int GetChapter ( )
inlinevirtual

Return currently selected chapter.

Returns
Chapter number
Remarks

◆ GetChapterCount()

virtual int GetChapterCount ( )
inlinevirtual

Return number of available chapters.

Returns
Chapter count
Remarks

◆ GetChapterName()

virtual const char* GetChapterName ( int  ch)
inlinevirtual

Return name of chapter.

Parameters
[in]chChapter identifier
Returns
Chapter name
Remarks

◆ GetChapterPos()

virtual int64_t GetChapterPos ( int  ch)
inlinevirtual

Return position if chapter # ch in milliseconds.

Parameters
[in]chChapter to get position from
Returns
Position in milliseconds
Remarks

◆ SeekChapter()

virtual bool SeekChapter ( int  ch)
inlinevirtual

Seek to the beginning of chapter # ch.

Parameters
[in]chChapter to seek
Returns
True if successfully done, false if not
Remarks