Ginga  0.13.6
 All Classes Namespaces Functions Variables
INCLPlayer.h
1 /******************************************************************************
2 Este arquivo eh parte da implementacao do ambiente declarativo do middleware
3 Ginga (Ginga-NCL).
4 
5 Direitos Autorais Reservados (c) 1989-2007 PUC-Rio/Laboratorio TeleMidia
6 
7 Este programa eh software livre; voce pode redistribui-lo e/ou modificah-lo sob
8 os termos da Licenca Publica Geral GNU versao 2 conforme publicada pela Free
9 Software Foundation.
10 
11 Este programa eh distribuido na expectativa de que seja util, porem, SEM
12 NENHUMA GARANTIA; nem mesmo a garantia implicita de COMERCIABILIDADE OU
13 ADEQUACAO A UMA FINALIDADE ESPECIFICA. Consulte a Licenca Publica Geral do
14 GNU versao 2 para mais detalhes.
15 
16 Voce deve ter recebido uma copia da Licenca Publica Geral do GNU versao 2 junto
17 com este programa; se nao, escreva para a Free Software Foundation, Inc., no
18 endereco 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA.
19 
20 Para maiores informacoes:
21 ncl @ telemidia.puc-rio.br
22 http://www.ncl.org.br
23 http://www.ginga.org.br
24 http://www.telemidia.puc-rio.br
25 ******************************************************************************
26 This file is part of the declarative environment of middleware Ginga (Ginga-NCL)
27 
28 Copyright: 1989-2007 PUC-RIO/LABORATORIO TELEMIDIA, All Rights Reserved.
29 
30 This program is free software; you can redistribute it and/or modify it under
31 the terms of the GNU General Public License version 2 as published by
32 the Free Software Foundation.
33 
34 This program is distributed in the hope that it will be useful, but WITHOUT ANY
35 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
36 PARTICULAR PURPOSE. See the GNU General Public License version 2 for more
37 details.
38 
39 You should have received a copy of the GNU General Public License version 2
40 along with this program; if not, write to the Free Software
41 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
42 
43 For further information contact:
44 ncl @ telemidia.puc-rio.br
45 http://www.ncl.org.br
46 http://www.ginga.org.br
47 http://www.telemidia.puc-rio.br
48 *******************************************************************************/
49 
50 #ifndef _INCLPlayer_H_
51 #define _INCLPlayer_H_
52 
53 #include "system/time/ITimeBaseProvider.h"
54 using namespace ::br::pucrio::telemidia::ginga::core::system::time;
55 
56 #include "mb/IMBDefs.h"
57 
58 #include "IPlayer.h"
59 #include "IPlayerListener.h"
60 
61 #include <vector>
62 
63 typedef struct {
64  string baseId;
65  string playerId;
66  int devClass;
67  GingaScreenID screenId;
68  int x;
69  int y;
70  int w;
71  int h;
72  bool enableGfx;
73  string parentDocId;
74  string nodeId;
75  string docId;
76  float transparency;
77  void* focusManager;
78  void* privateBaseManager;
79  bool enableMulticast;
82 
83 namespace br {
84 namespace pucrio {
85 namespace telemidia {
86 namespace ginga {
87 namespace core {
88 namespace player {
89  class INCLPlayer : public IPlayer {
90  public:
91  static const int DEEPEST_LEVEL = -1;
92 
93  virtual ~INCLPlayer(){};
94 
95  virtual void printGingaWindows()=0;
96  virtual set<string>* createPortIdList()=0;
97  virtual short getMappedInterfaceType(string portId)=0;
98 
99  virtual void setMrl(string mrl, bool visible=true)=0;
100  virtual void reset()=0;
101  virtual void rebase()=0;
102  //virtual void setStandByState(bool standBy)=0;
103  virtual void setTimeBaseProvider(
104  ITimeBaseProvider* timeBaseProvider)=0;
105 
106  virtual void setBackgroundImage(string uri)=0;
107  virtual void setParentLayout(void* layout)=0;
108  virtual string getScreenShot()=0;
109  virtual void* setCurrentDocument(string fName)=0;
110  virtual void setDepthLevel(int level)=0;
111  virtual int getDepthLevel()=0;
112  virtual bool editingCommand(
113  string commandTag, string editingCommand)=0;
114 
115  virtual void setNotifyContentUpdate(bool notify)=0;
116  virtual void addListener(IPlayerListener* listener)=0;
117  virtual void removeListener(IPlayerListener* listener)=0;
118  virtual void notifyPlayerListeners(
119  short code, string paremeter, short type, string value)=0;
120 
121  virtual void setSurface(ISurface* surface)=0;
122  virtual ISurface* getSurface()=0;
123  virtual int64_t getVPts(){return 0;};
124  virtual double getMediaTime()=0;
125  virtual double getTotalMediaTime()=0;
126  virtual void setMediaTime(double newTime)=0;
127  virtual bool setKeyHandler(bool isHandler)=0;
128  virtual void setScope(
129  string scope,
130  short type,
131  double begin=-1, double end=-1, double outTransDur=-1)=0;
132 
133  virtual bool play()=0;
134  virtual void stop()=0;
135  virtual void abort()=0;
136  virtual void pause()=0;
137  virtual void resume()=0;
138 
139  virtual string getPropertyValue(string name)=0;
140  virtual void setPropertyValue(string name, string value)=0;
141 
142  virtual void setReferenceTimePlayer(IPlayer* player)=0;
143  virtual void addTimeReferPlayer(IPlayer* referPlayer)=0;
144  virtual void removeTimeReferPlayer(IPlayer* referPlayer)=0;
145  virtual void notifyReferPlayers(int transition)=0;
146  virtual void timebaseObjectTransitionCallback(int transition)=0;
147  virtual void setTimeBasePlayer(IPlayer* timeBasePlayer)=0;
148  virtual bool hasPresented()=0;
149  virtual void setPresented(bool presented)=0;
150  virtual bool isVisible()=0;
151  virtual void setVisible(bool visible)=0;
152  virtual bool immediatelyStart()=0;
153  virtual void setImmediatelyStart(bool immediatelyStartVal)=0;
154  virtual void forceNaturalEnd(bool forceIt)=0;
155  virtual bool isForcedNaturalEnd()=0;
156  virtual bool setOutWindow(GingaWindowID windowId)=0;
157 
158  /*Exclusive for ChannelPlayer*/
159  virtual IPlayer* getSelectedPlayer()=0;
160  virtual void setPlayerMap(map<string, IPlayer*>* objs)=0;
161  virtual map<string, IPlayer*>* getPlayerMap()=0;
162  virtual IPlayer* getPlayer(string objectId)=0;
163  virtual void select(IPlayer* selObject)=0;
164 
165  /*Exclusive for Application Players*/
166  virtual void setCurrentScope(string scopeId)=0;
167  virtual void flip()=0;
168 
169  virtual string getDepUris(vector<string>* uris, int targetDev=0)=0;
170 
171  virtual void timeShift(string direction)=0;
172  };
173 }
174 }
175 }
176 }
177 }
178 }
179 
180 typedef ::br::pucrio::telemidia::ginga::core::player::INCLPlayer*
181  NCLPlayerCreator(NclPlayerData* data);
182 
183 typedef void NCLPlayerDescroyer(
185 
186 #endif //_INCLPlayer_H_
Definition: Player.h:249
Definition: INCLPlayer.h:63