ADTF Playback Service Control interface to control the ADTF Player.
More...
|
| ~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.
ucom::object_ptr<IPlayer> pPlayer;
{
if (
IS_OK(pPlayer->Open(
"c:/temp/my_test_file.adtfdat",
true)))
{
pPlayer->Play();
}
}
#define IS_OK(s)
Check if result is OK.
tResult get_player(ucom::object_ptr< IPlayer > &pPlayer)
Gets the current registered player instance.
- See also
- Streaming Graph, ADTFDAT File Player
Definition at line 57 of file player_intf.h.
◆ tState
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.
◆ Close()
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
-
ERR_NOERROR | Files successfully closed - State is now tState::Closed. |
◆ GetChunkCount()
virtual uint64_t 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()
Information interface to get the current state of the Player.
- Return values
-
◆ GetCurrentTime()
Information interface to get the current time position of the current opened files.
- Returns
- The time between GetTimeRange
- Return values
-
- See also
- GetTimeRange
◆ GetTimeRange()
Information interface to get the time range of the currently opened files.
- Parameters
-
tmFirstItem | outTime of the first item |
tmLastItem | outTime 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 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()
Control interface to pause streaming.
- Returns
- Standard Result Code
◆ Play()
Control interface to start streaming.
- Returns
- Standard Result Code
◆ Reset()
Control interface to Reset the streaming.
- Returns
- Standard Result Code
◆ SeekToChunkIndex()
virtual tResult SeekToChunkIndex |
( |
uint64_t |
ui64ChunkIndex | ) |
|
|
pure virtual |
Control interface to seek to the given (Chunk) Index.
- Returns
- Standard Result Code
◆ SeekToStreamIndex()
virtual tResult 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()
Control interface to seek to the given (Chunk) Time.
- Returns
- Standard Result Code