ADTF
3.16.0
|
ADTF Playback Service Control interface to control the ADTF Player. More...
Classes | |
class | IListStreamCallback |
callback for stream information More... | |
struct | tEvent |
Layout of the events emitted by the playback service. More... | |
Public Types | |
enum | tState : uint32_t { Closed = 0 , Paused = 1 , Streaming = 2 } |
Public Member Functions | |
ADTF_IID (IPlayer, "player.ant.services.adtf.iid") | |
Interface ID for the playback service interface. | |
virtual tResult | Open (const char *strFileNames, bool bLoadReferencedFiles)=0 |
Opens one or more adtfdat files. More... | |
virtual tResult | Close ()=0 |
Closes the current loaded files. More... | |
virtual tResult | GetTimeRange (tTimeStamp &tmFirstItem, tTimeStamp &tmLastItem) const =0 |
Information interface to get the time range of the currently opened files. More... | |
virtual uint64_t | GetChunkCount () const =0 |
Information interface to get the chunk count of the current opened files. More... | |
virtual tResult | GetCurrentFileNames (base::ant::IString &&strFileNames) const =0 |
Information interface to get the time range of the current opened file. More... | |
virtual tTimeStamp | GetCurrentTime () const =0 |
Information interface to get the current time position of the current opened files. More... | |
virtual IPlayer::tState | GetCurrentState () const =0 |
Information interface to get the current state of the Player. More... | |
virtual tResult | Play ()=0 |
Control interface to start streaming. More... | |
virtual tResult | Pause ()=0 |
Control interface to pause streaming. More... | |
virtual tResult | Reset ()=0 |
Control interface to Reset the streaming. More... | |
virtual tResult | SeekToTime (tTimeStamp tmTime)=0 |
Control interface to seek to the given (Chunk) Time. More... | |
virtual tResult | SeekToChunkIndex (uint64_t ui64ChunkIndex)=0 |
Control interface to seek to the given (Chunk) Index. More... | |
virtual tResult | SeekToStreamIndex (uint16_t ui16StreamId, uint64_t ui64StreamIndex)=0 |
Control interface to seek to the given (Stream) Index of the given stream. More... | |
virtual tResult | ListStreams (IListStreamCallback &oCallback)=0 |
List all available streams. More... | |
![]() | |
ADTF_IID (IObject, "object.ant.ucom.adtf.iid") | |
Marks the IObject to be castable with the ucom_cast() More... | |
Additional Inherited Members | |
![]() | |
~IObject ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
ADTF Playback Service Control interface to control the ADTF Player.
This interface enables you to control an instance of ADTF Playback Service. Usually the ADTF Playback Service will be controlled by the ADTFDAT File Player. By following code the service will be controlled by you. Make sure the property "enable_control" is set to false, if you want to control it by yourself.
Definition at line 57 of file player_intf.h.
enum tState : uint32_t |
Enumerator | |
---|---|
Closed | no file is loaded |
Paused | file is opened and playback has been paused |
Streaming | file is opened and streaming |
Definition at line 64 of file player_intf.h.
|
pure virtual |
Closes the current loaded files.
The playback of a recently opened adtfdat file will be stopped and closed. Also if error occures the new state is closed.
ERR_NOERROR | Files successfully closed - State is now tState::Closed. |
|
pure virtual |
Information interface to get the chunk count of the current opened files.
0 | no file is opend |
|
pure virtual |
Information interface to get the time range of the current opened file.
strFileNames | [out] String where to return the filenames to. (comma separated list) |
ERR_NOERROR | State change succeded |
|
pure virtual |
Information interface to get the current state of the Player.
the | State of the player |
|
pure virtual |
Information interface to get the current time position of the current opened files.
<0 | No files are opend |
|
pure virtual |
Information interface to get the time range of the currently opened files.
tmFirstItem | outTime of the first item |
tmLastItem | outTime of the last item |
ERR_NOERROR | File is at least opend and information where read. |
|
pure virtual |
List all available streams.
[in] | oCallback | The callback that retrieves all streams. |
|
pure virtual |
Opens one or more adtfdat files.
strFileNames | [in] List of Files to open at once. (comma separated list) |
bLoadReferencedFiles | [in] open files which are added to the file extension "referenced_files". |
ERR_NOERROR | Files successfully opend - State is now tState::Opened. |
|
pure virtual |
Control interface to pause streaming.
|
pure virtual |
Control interface to start streaming.
|
pure virtual |
Control interface to Reset the streaming.
|
pure virtual |
Control interface to seek to the given (Chunk) Index.
|
pure virtual |
Control interface to seek to the given (Stream) Index of the given stream.
|
pure virtual |
Control interface to seek to the given (Chunk) Time.