ADTF  3.18.2
adtf_remote_player_intf.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include "plugins/player_intf.h"
10 
11 #include <adtf_utils.h>
12 #include <adtfucom3/adtf_ucom3.h>
13 
14 namespace adtf
15 {
16 namespace remote
17 {
18 namespace ant
19 {
20 
26 class IPlayer
27 {
28  public:
29  ADTF_IID(IPlayer, "player.ant.remote.adtf");
30 
32  static constexpr const tChar* const DEFAULT_NAME = "player";
33 
34  public:
40  virtual tTimeStamp GetFirstTime() const = 0;
46  virtual tTimeStamp GetLastTime() const = 0;
52  virtual uint64_t GetChunkCount() const = 0;
53 
59  virtual const char* GetCurrentFileNames() const = 0;
65  virtual tTimeStamp GetCurrentTime() = 0;
66 
72  virtual int8_t GetState() const = 0; // same as tState
73 
78  virtual tResult Play() = 0;
83  virtual tResult Pause() = 0;
84 
91  virtual tResult SeekToTime(tTimeStamp tmTime) = 0;
92 
99  virtual tResult SeekToChunkIndex(uint64_t ui64ChunkIndex) = 0;
100 
107  virtual tResult Open(const char* strFileNames) = 0;
108 
113  virtual tResult Close() = 0;
114 };
115 
116 }
117 
118 namespace bat
119 {
120 
124 class IPlayer : public ant::IPlayer
125 {
126 public:
127  ADTF_IID(IPlayer, "player.bat.remote.adtf");
128 
129 public:
134  virtual const char* GetMarkers() const = 0;
135 
143  virtual tResult ExtractAttachedFiles(const char* strAdtfDatFileNames,
144  const char* strDestinationDirectory) = 0;
145 
146 };
147 
148 } // namespace bat
149 
150 namespace elasto
151 {
152 
156 class IPlayer : public bat::IPlayer
157 {
158 public:
159  ADTF_IID(IPlayer, "player.elasto.remote.adtf");
160 
161 public:
162 
169 
176 
182  virtual tResult SetPlaybackSpeed(float fPlaybackSpeed) = 0;
183 
189  virtual float GetPlaybackSpeed() const = 0;
190 
198  virtual tResult Step(uint64_t nSteps,
201  bool bWait) = 0;
202 
203 };
204 
205 } // namespace elasto
206 
207 namespace quiet
208 {
209 
213 class IPlayer : public elasto::IPlayer
214 {
215 public:
216  ADTF_IID(IPlayer, "player.quiet.remote.adtf");
217 
218 public:
224  virtual bool IsSeekable() const = 0;
225 };
226 
227 } // namespace quiet
228 
229 using quiet::IPlayer;
230 
231 
232 } // namespace adtf
233 
234 } // namespace remote
235 
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
char tChar
The tChar defines the type for platform character set (platform and compiler dependent type).
The Remote Player interface provides access to retrieve information about and control the current adt...
virtual tResult SeekToChunkIndex(uint64_t ui64ChunkIndex)=0
Sends a command to seek the chunk index to the given value.
virtual tTimeStamp GetFirstTime() const =0
Retrieves the first (chunk) time of the currently loaded files.
virtual tResult Open(const char *strFileNames)=0
Sends a command to open given filenames.
virtual tResult SeekToTime(tTimeStamp tmTime)=0
Sends a command to seek the chunk index to the given value.
virtual tTimeStamp GetCurrentTime()=0
Retrieves the current (chunk) time of the player points to at time of call.
virtual int8_t GetState() const =0
Retrieves the current state of the player as integer.
static constexpr const tChar *const DEFAULT_NAME
The default name the player is registered to the adtf::services::ant::IRPCObjectServerRegistry.
virtual tResult Close()=0
Sends a command to close current files.
virtual tResult Pause()=0
Sends a command to set the state to Paused state.
virtual uint64_t GetChunkCount() const =0
Retrieves the (chunk) count of the currently loaded files.
virtual tResult Play()=0
Sends a command to set the state to Playing state.
virtual tTimeStamp GetLastTime() const =0
Retrieves the last (chunk) time of the currently loaded files.
virtual const char * GetCurrentFileNames() const =0
Retrieves the list of the currently loaded files.
The Remote Player interface provides access to retrieve information about and control the current adt...
virtual tResult ExtractAttachedFiles(const char *strAdtfDatFileNames, const char *strDestinationDirectory)=0
Extracts all attached files from the given ADTF DAT files.
virtual const char * GetMarkers() const =0
Returns all marker information in an XML string.
The Remote Player interface provides access to retrieve information about and control the current adt...
virtual tResult Step(uint64_t nSteps, const adtf::services::elasto::IPlayer::tStepDirection &eDirection, adtf::services::elasto::IPlayer::tStepItems eItems, bool bWait)=0
Steps n samples in given direction.
virtual tResult SetPlaybackSpeed(float fPlaybackSpeed)=0
Sets the playback speed of the player.
virtual tResult SetLoopMode(const adtf::services::elasto::IPlayer::tLoopMode &eLoopMode)=0
Sets the looping mode of the player.
virtual float GetPlaybackSpeed() const =0
Retrieves the current playback speed of the player.
virtual adtf::services::elasto::IPlayer::tLoopMode GetLoopMode() const =0
Retrieves the looping mode of the player.
The Remote Player interface provides access to retrieve information about and control the current adt...
virtual bool IsSeekable() const =0
Return the current capability of the player of seeking with the opened files.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.