Used to get available chapters.
More...
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()).
◆ GetChapter()
virtual int kodi::addon::CInstanceInputStream::GetChapter |
( |
| ) |
|
|
inlinevirtual |
Return currently selected chapter.
- Returns
- Chapter number
◆ GetChapterCount()
virtual int kodi::addon::CInstanceInputStream::GetChapterCount |
( |
| ) |
|
|
inlinevirtual |
Return number of available chapters.
- Returns
- Chapter count
◆ GetChapterName()
virtual const char * kodi::addon::CInstanceInputStream::GetChapterName |
( |
int | ch | ) |
|
|
inlinevirtual |
Return name of chapter.
- Parameters
-
- Returns
- Chapter name
◆ GetChapterPos()
virtual int64_t kodi::addon::CInstanceInputStream::GetChapterPos |
( |
int | ch | ) |
|
|
inlinevirtual |
Return position if chapter # ch in milliseconds.
- Parameters
-
[in] | ch | Chapter to get position from |
- Returns
- Position in milliseconds
◆ SeekChapter()
virtual bool kodi::addon::CInstanceInputStream::SeekChapter |
( |
int | ch | ) |
|
|
inlinevirtual |
Seek to the beginning of chapter # ch.
- Parameters
-
- Returns
- True if successfully done, false if not