ADTF
Loading...
Searching...
No Matches
adtf::services::bat::IPlayer Class Referenceabstract

ADTF Playback Service Control interface to control the ADTF Player. More...

#include <player_intf.h>

Inherits adtf::services::ant::IPlayer.

Inherited by adtf::services::elasto::IPlayer.

Public Member Functions

 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
 
- Public Member Functions inherited from adtf::services::ant::IPlayer
 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
 
- Public Member Functions inherited from adtf::ucom::ant::IObject
 ADTF_IID (IObject, "object.ant.ucom.adtf.iid")
 

Additional Inherited Members

- Public Types inherited from adtf::services::ant::IPlayer
enum  tState : uint32_t { Closed = 0 , Paused = 1 , Streaming = 2 }
 
- Protected Member Functions inherited from adtf::ucom::ant::IObject
 ~IObject ()=default
 Protected destructor --> Only the final implementation can be destroyed!
 

Detailed Description

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.

// MIND: This call will only succeed if player is present and it will be called _AFTER_ the PlaybackService was
initialized! if (IS_OK(get_player(pPlayer))
{
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:286
Remarks
Usually this Playback interface and the states of the Player does NOT depend on the Runlevel. Only the concrete implementation of the Player maps it to the StreamingGraph State.

Member Function Documentation

◆ ExtractAttachedFiles()

virtual tResult adtf::services::bat::IPlayer::ExtractAttachedFiles ( const char * strAdtfDatFileNames,
const char * strDestinationDirectory )
pure virtual

Extracts all attached files from the given ADTF DAT files. This method also registers macros in the following form: "AF:<tag_name>".

Parameters
strAdtfDatFileNames[in] A comma separated list of file names.
strDestinationDirectory[in] The directory where the files should be extracted to.
Returns
Standard result.

◆ GetMarkers()

virtual tResult adtf::services::bat::IPlayer::GetMarkers ( adtf::base::ant::IString && strMarkers) const
pure virtual

Get Markers. Returns an XML representation of currently available markers.

Parameters
[out]strMarkersThe markers.
Returns
Standard result.

The documentation for this class was generated from the following file: