ADTF Playback Service Control interface to control the ADTF Player.
More...
#include <player_intf.h>
Inherits adtf::services::elasto::IPlayer.
|
|
| ADTF_IID (IPlayer, "player.quiet.services.adtf.iid") |
| | Interface ID for the playback service interface.
|
| |
| virtual tResult | Open (const char *strFilenames, bool bLoadReferencedFiles, const char *strReaderId, const adtf::base::ant::IProperties *pReaderProperties=nullptr)=0 |
| | Opens one or more given file with the given reader_id.
|
| |
| virtual bool | IsSeekable () const=0 |
| | Indicates the players current capability of seeking.
|
| |
|
| ADTF_IID (IPlayer, "player.elasto.remote.adtf") |
| |
| virtual tResult | SetLoopMode (const tLoopMode &eLoopMode)=0 |
| |
| virtual tLoopMode | GetLoopMode () const =0 |
| |
| virtual tResult | SetPlaybackSpeed (float fPlaybackSpeed)=0 |
| |
| virtual float | GetPlaybackSpeed () const =0 |
| |
| virtual tResult | Step (uint64_t nSteps, tStepDirection eDirection, tStepItems eItems, bool bWait)=0 |
| |
|
| ADTF_IID (IPlayer, "player.bat.services.adtf.iid") |
| | Interface ID for the playback service interface.
|
| |
| virtual tResult | GetMarkers (adtf::base::ant::IString &&strMarkers) const =0 |
| |
| virtual tResult | ExtractAttachedFiles (const char *strAdtfDatFileNames, const char *strDestinationDirectory)=0 |
| |
|
| 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.
|
| |
| virtual tResult | Close ()=0 |
| | Closes the current loaded files.
|
| |
| virtual tResult | GetTimeRange (tTimeStamp &tmFirstItem, tTimeStamp &tmLastItem) const =0 |
| |
| virtual uint64_t | GetChunkCount () const =0 |
| |
| virtual tResult | GetCurrentFileNames (base::ant::IString &&strFileNames) const =0 |
| |
| virtual tTimeStamp | GetCurrentTime () const =0 |
| |
| virtual IPlayer::tState | GetCurrentState () const =0 |
| |
| virtual tResult | Play ()=0 |
| |
| virtual tResult | Pause ()=0 |
| |
| virtual tResult | Reset ()=0 |
| |
| virtual tResult | SeekToTime (tTimeStamp tmTime)=0 |
| |
| virtual tResult | SeekToChunkIndex (uint64_t ui64ChunkIndex)=0 |
| |
| virtual tResult | SeekToStreamIndex (uint16_t ui16StreamId, uint64_t ui64StreamIndex)=0 |
| |
| virtual tResult | ListStreams (IListStreamCallback &oCallback)=0 |
| |
| | ADTF_IID (IObject, "object.ant.ucom.adtf.iid") |
| |
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(adtf::ucom::object_ptr< IPlayer > &pPlayer)
Definition player_intf.h:425
◆ IsSeekable()
| virtual bool adtf::services::quiet::IPlayer::IsSeekable |
( |
| ) |
const |
|
pure virtual |
Indicates the players current capability of seeking.
- Return values
-
| false | the player is not seekable (or not opened) |
| true | the player is seekable |
◆ Open()
| virtual tResult adtf::services::quiet::IPlayer::Open |
( |
const char * | strFilenames, |
|
|
bool | bLoadReferencedFiles, |
|
|
const char * | strReaderId, |
|
|
const adtf::base::ant::IProperties * | pReaderProperties = nullptr ) |
|
pure virtual |
Opens one or more given file with the given reader_id.
- Parameters
-
| [in] | strFileNames | List of Files to open at once. (comma separated list) |
| [in] | bLoadReferencedFiles | open files which are added to the file extension "referenced_files". |
| [in] | strReaderId | Reader id to use (default is "adtfdat"). See also GetAvailableReaderIds. |
| [in] | pReaderProperties | Configuration properties for the specific reader implementation. |
- Return values
-
| ERR_NOERROR | Files successfully opend - State is now tState::Opened. |
The documentation for this class was generated from the following file: