![]() |
![]() |
![]() |
![]() |
Seek to a specified title and chapter on a track or mediastore
#include <mme/mme.h> int mme_seek_title_chapter( mme_hdl_t hdl, uint64_t title, uint64_t chapter );
mme
The function mme_seek_title_chapter() seeks to a specified title and chapter on a track or mediastore so that playback can begin from that point. This function can only be used if the MME_PLAYSUPPORT_NAVIGATION flag is set in the support member of the structure mme_play_info_t.
To start playback from a specific title and chapter:
To get information about titles and chapters on a playing track, call the function mme_get_title_chapter().
None delivered.
This function blocks on io-media.
Below is a code snippet that illustrates how to seek to a specific title (1) and chapter (5).
uint64_t title = 1, chapter = 5; rc = mme_seek_title_chapter(mmehdl, title, chapter); if (rc == EOK) { printf( "Seeking to title %lld chapter %lld", title, chapter); } else { printf( "Seek to title %lld chapter %lld failed, %s", title, chapter, strerror(errno)); }
QNX Neutrino
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
mme_get_title_chapter(), mme_play(), mme_play_bookmark(), mme_play_get_info(), mme_play_info_t, mme_seektotime()
![]() |
![]() |
![]() |
![]() |