55 #include "mb/interface/IWindow.h"
56 #include "mb/interface/ISurface.h"
57 #include "mb/interface/IImageProvider.h"
58 using namespace ::br::pucrio::telemidia::ginga::core::mb;
60 #include "IPlayerListener.h"
74 static const short PL_NOTIFY_START = 1;
75 static const short PL_NOTIFY_PAUSE = 2;
76 static const short PL_NOTIFY_RESUME = 3;
77 static const short PL_NOTIFY_STOP = 4;
78 static const short PL_NOTIFY_ABORT = 5;
79 static const short PL_NOTIFY_NCLEDIT = 6;
80 static const short PL_NOTIFY_UPDATECONTENT = 7;
81 static const short PL_NOTIFY_OUTTRANS = 8;
83 static const short TYPE_PRESENTATION = 10;
84 static const short TYPE_ATTRIBUTION = 11;
85 static const short TYPE_SIGNAL = 12;
86 static const short TYPE_PASSIVEDEVICE = 13;
87 static const short TYPE_SELECTION = 14;
91 virtual void flip()=0;
92 virtual ISurface* getSurface()=0;
93 virtual void setMrl(
string mrl,
bool visible=
true)=0;
94 virtual void reset()=0;
95 virtual void rebase()=0;
97 virtual void setNotifyContentUpdate(
bool notify)=0;
100 virtual void notifyPlayerListeners(
101 short code,
string paremeter,
short type,
string value)=0;
103 virtual int64_t getVPts()=0;
104 virtual double getMediaTime()=0;
105 virtual double getTotalMediaTime()=0;
106 virtual void setMediaTime(
double newTime)=0;
107 virtual bool setKeyHandler(
bool isHandler)=0;
108 virtual void setScope(
111 double begin=-1,
double end=-1,
double outTransDur=-1)=0;
113 virtual bool play()=0;
114 virtual void stop()=0;
115 virtual void abort()=0;
116 virtual void pause()=0;
117 virtual void resume()=0;
119 virtual string getPropertyValue(
string name)=0;
120 virtual void setPropertyValue(
string name,
string value)=0;
122 virtual void setReferenceTimePlayer(
IPlayer* player)=0;
123 virtual void addTimeReferPlayer(
IPlayer* referPlayer)=0;
124 virtual void removeTimeReferPlayer(
IPlayer* referPlayer)=0;
125 virtual void notifyReferPlayers(
int transition)=0;
126 virtual void timebaseObjectTransitionCallback(
int transition)=0;
127 virtual void setTimeBasePlayer(
IPlayer* timeBasePlayer)=0;
128 virtual bool hasPresented()=0;
129 virtual void setPresented(
bool presented)=0;
130 virtual bool isVisible()=0;
131 virtual void setVisible(
bool visible)=0;
132 virtual bool immediatelyStart()=0;
133 virtual void setImmediatelyStart(
bool immediatelyStartVal)=0;
134 virtual void forceNaturalEnd(
bool forceIt)=0;
135 virtual bool isForcedNaturalEnd()=0;
136 virtual bool setOutWindow(GingaWindowID windowId)=0;
139 virtual IPlayer* getSelectedPlayer()=0;
140 virtual void setPlayerMap(map<string, IPlayer*>* objs)=0;
141 virtual map<string, IPlayer*>* getPlayerMap()=0;
142 virtual IPlayer* getPlayer(
string objectId)=0;
143 virtual void select(
IPlayer* selObject)=0;
146 virtual void setCurrentScope(
string scopeId)=0;
148 virtual void timeShift(
string direction)=0;
157 typedef ::br::pucrio::telemidia::ginga::core::player::IPlayer* PlayerCreator(
158 GingaScreenID screenId,
const char* mrl,
bool* hasVisual);
160 typedef void PlayerDestroyer(
Definition: IPlayerListener.h:62