ADTF Playback Service Control interface to control the ADTF Player.
More...
#include <player_intf.h>
Inherits adtf::ucom::ant::IObject.
Inherited by adtf::services::bat::IPlayer.
|
|
| ~IObject ()=default |
| | Protected destructor --> Only the final implementation can be destroyed!
|
| |
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 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.
{
if (
IS_OK(pPlayer->Open(
"c:/temp/my_test_file.adtfdat",
true)))
{
pPlayer->Play();
}
}
#define IS_OK(s)
Check if result is OK.
Definition result.h:17
Definition object_ptr.h:384
tResult get_player(ucom::object_ptr< IPlayer > &pPlayer)
Definition player_intf.h:232
◆ tState
| Enumerator |
|---|
| Closed | no file is loaded
|
| Paused | file is opened and playback has been paused
|
| Streaming | file is opened and streaming
|
◆ Close()
| virtual tResult adtf::services::ant::IPlayer::Close |
( |
| ) |
|
|
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.
- Return values
-
◆ GetChunkCount()
| virtual uint64_t adtf::services::ant::IPlayer::GetChunkCount |
( |
| ) |
const |
|
pure virtual |
Information interface to get the chunk count of the current opened files.
- Returns
- chunk count
- Return values
-
◆ GetCurrentFileNames()
Information interface to get the time range of the current opened file.
- Parameters
-
| strFileNames | [out] String where to return the filenames to. (comma separated list) |
- Return values
-
| ERR_NOERROR | State change succeded |
◆ GetCurrentState()
| virtual IPlayer::tState adtf::services::ant::IPlayer::GetCurrentState |
( |
| ) |
const |
|
pure virtual |
Information interface to get the current state of the Player.
- Return values
-
◆ GetCurrentTime()
| virtual tTimeStamp adtf::services::ant::IPlayer::GetCurrentTime |
( |
| ) |
const |
|
pure virtual |
Information interface to get the current time position of the current opened files.
- Returns
- The time between GetTimeRange
- Return values
-
- See also
- GetTimeRange
◆ GetTimeRange()
| virtual tResult adtf::services::ant::IPlayer::GetTimeRange |
( |
tTimeStamp & | tmFirstItem, |
|
|
tTimeStamp & | tmLastItem ) const |
|
pure virtual |
Information interface to get the time range of the currently opened files.
- Parameters
-
| tmFirstItem | [out] (Chunk)Time of the first item |
| tmLastItem | [out] (Chunk)Time of the last item |
- Return values
-
| ERR_NOERROR | File is at least opend and information where read. |
◆ ListStreams()
List all available streams
- Parameters
-
| [in] | oCallback | The callback that retrieves all streams. |
◆ Open()
| virtual tResult adtf::services::ant::IPlayer::Open |
( |
const char * | strFileNames, |
|
|
bool | bLoadReferencedFiles ) |
|
pure virtual |
Opens one or more adtfdat files.
- Parameters
-
| 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". |
- Return values
-
| ERR_NOERROR | Files successfully opend - State is now tState::Opened. |
◆ Pause()
| virtual tResult adtf::services::ant::IPlayer::Pause |
( |
| ) |
|
|
pure virtual |
Control interface to pause streaming.
- Returns
- Standard Result Code
◆ Play()
| virtual tResult adtf::services::ant::IPlayer::Play |
( |
| ) |
|
|
pure virtual |
Control interface to start streaming.
- Returns
- Standard Result Code
◆ Reset()
| virtual tResult adtf::services::ant::IPlayer::Reset |
( |
| ) |
|
|
pure virtual |
Control interface to Reset the streaming.
- Returns
- Standard Result Code
◆ SeekToChunkIndex()
| virtual tResult adtf::services::ant::IPlayer::SeekToChunkIndex |
( |
uint64_t | ui64ChunkIndex | ) |
|
|
pure virtual |
Control interface to seek to the given (Chunk) Index.
- Returns
- Standard Result Code
◆ SeekToStreamIndex()
| virtual tResult adtf::services::ant::IPlayer::SeekToStreamIndex |
( |
uint16_t | ui16StreamId, |
|
|
uint64_t | ui64StreamIndex ) |
|
pure virtual |
Control interface to seek to the given (Stream) Index of the given stream.
- Returns
- Standard Result Code
◆ SeekToTime()
| virtual tResult adtf::services::ant::IPlayer::SeekToTime |
( |
tTimeStamp | tmTime | ) |
|
|
pure virtual |
Control interface to seek to the given (Chunk) Time.
- Returns
- Standard Result Code
The documentation for this class was generated from the following file: