50 #ifndef __PlayerProcess_h_
51 #define __PlayerProcess_h_
55 #include "system/process/Process.h"
56 #include "system/process/IProcessListener.h"
57 using namespace ::br::pucrio::telemidia::ginga::core::system::process;
66 public Player,
public Process,
public IProcessListener {
69 map<string, string>* msgs;
70 pthread_mutex_t msgMutex;
73 pthread_mutex_t ansMutex;
74 pthread_cond_t ansCond;
78 PlayerProcess(GingaScreenID screenId,
const char* objectName);
82 void init(
const char* objName);
85 void receiveProcessSignal(
int sigType,
int pSig,
int ppid);
86 void setMrl(
string mrl,
bool visible=
true);
91 string getAnswer(
string token,
int howPatient);
92 void waitAnswer(
int milliseconds);
95 void messageReceived(
string msg);
97 void setNotifyContentUpdate(
bool notify);
100 void notifyPlayerListeners(
101 short code,
string paremeter,
short type,
string value);
104 double getMediaTime();
105 void setMediaTime(
double newTime);
106 bool setKeyHandler(
bool isHandler);
110 double begin=-1,
double end=-1,
double outTransDur=-1);
118 string getPropertyValue(
string name);
119 void setPropertyValue(
string name,
string value);
121 void setReferenceTimePlayer(
IPlayer* player);
122 void addTimeReferPlayer(
IPlayer* referPlayer);
123 void removeTimeReferPlayer(
IPlayer* referPlayer);
124 void notifyReferPlayers(
int transition);
125 void timebaseObjectTransitionCallback(
int transition);
126 void setTimeBasePlayer(
IPlayer* timeBasePlayer);
128 void setPresented(
bool presented);
130 void setVisible(
bool visible);
131 bool immediatelyStart();
132 void setImmediatelyStart(
bool immediatelyStartVal);
133 void forceNaturalEnd(
bool forceIt);
134 bool isForcedNaturalEnd();
135 bool setOutWindow(GingaWindowID windowId);
139 void setPlayerMap(map<string, IPlayer*>* objs);
140 map<string, IPlayer*>* getPlayerMap();
141 IPlayer* getPlayer(
string objectId);
142 void select(
IPlayer* selObject);
145 void setCurrentScope(
string scopeId);
147 void timeShift(
string direction);
156 typedef ::br::pucrio::telemidia::ginga::core::player::IPlayer* PlayerCreator(
157 GingaScreenID screenId,
const char* mrl,
bool* hasVisual);
159 typedef void PlayerDestroyer(
Definition: PlayerProcess.h:65
Definition: IPlayerListener.h:62