20 #ifndef GNASH_PLAYER_H
21 #define GNASH_PLAYER_H
31 #include <boost/intrusive_ptr.hpp>
33 #include <boost/shared_ptr.hpp>
79 void run(
int argc,
char* argv[],
80 const std::string& infile,
const std::string&
url =
"");
87 #ifdef GNASH_FPS_DEBUG
95 void setFpsPrintTime(
float time)
100 #endif // def GNASH_FPS_DEBUG
134 float oldtimeout = _exitTimeout;
140 _params[
name] = value;
164 _startFullscreen =
x;
172 _audioDump = filespec;
192 _screenshots = screenshots;
199 _screenshotFile = file;
206 _screenshotQuality = quality;
214 std::string _hwaccel;
219 std::string _renderer;
224 CallbacksHandler(
Gui& gui,
const Player& player)
239 void notify(
const std::string& event,
const std::string& arg);
248 std::auto_ptr<CallbacksHandler> _callbacksHandler;
266 static unsigned int silentStream(
void* udata, boost::int16_t* stream,
267 unsigned int len,
bool& atEOF);
279 std::auto_ptr<Gui> getGui();
281 void setFlashVars(
const std::string& varstr);
283 typedef std::map<std::string, std::string, StringNoCaseLessThan> Params;
295 unsigned long _windowID;
300 std::string _baseurl;
317 boost::shared_ptr<sound::sound_handler> _soundHandler;
319 boost::shared_ptr<media::MediaHandler> _mediaHandler;
325 std::auto_ptr<RunResources> _runResources;
328 std::auto_ptr<Gui> _gui;
334 boost::intrusive_ptr<movie_definition> _movieDef;
336 unsigned long _maxAdvances;
344 boost::intrusive_ptr<movie_definition> load_movie();
346 #ifdef GNASH_FPS_DEBUG
357 bool _startFullscreen;
361 std::string _audioDump;
366 std::string _screenshots;
371 std::string _screenshotFile;
376 int _screenshotQuality;
Player()
Definition: Player.cpp:194
void setWindowId(unsigned long x)
Definition: Player.h:114
void run(int argc, char *argv[], const std::string &infile, const std::string &url="")
Play the movie at the given url/path.
Definition: Player.cpp:377
void setHWAccel(const std::string &x)
Definition: Player.h:183
void setScreenShotFile(const std::string &file)
Set the filename for screenshot output.
Definition: Player.h:198
Definition: GnashKey.h:150
float setExitTimeout(float n)
Definition: Player.h:133
void setBaseUrl(const std::string &baseurl)
Set the base url for this run.
Definition: Player.h:129
SWFStream & s
Definition: DefineBitsTag.cpp:73
void setMaxAdvances(unsigned long ul)
Definition: Player.h:122
void setControlFD(int fd)
Definition: Player.h:155
~Player()
Definition: Player.cpp:856
void setScreenShots(const std::string &screenshots)
This should be a comma-separated list of frames.
Definition: Player.h:191
void setRenderer(const std::string &x)
Definition: Player.h:178
Abstract base class for FS handlers.
Definition: HostInterface.h:199
void setXPosition(int xPos)
Definition: Player.h:108
boost::variant< HostMessage, CustomMessage > Message
Definition: HostInterface.h:213
size_t getWidth() const
Definition: Player.h:103
size_t getXPosition() const
Definition: Player.h:109
void hideMenu(bool x)
Definition: Player.h:167
size_t getHeight() const
Definition: Player.h:106
void setAudioDumpfile(const std::string &filespec)
Definition: Player.h:171
void setMedia(const std::string &media)
Definition: Player.h:151
void setHeight(size_t h)
Definition: Player.h:105
void setDelay(unsigned int d)
Definition: Player.h:85
Definition: GnashKey.h:160
Parent class from which all GUI implementations will depend.
Definition: gui.h:87
void setHostFD(int fd)
Definition: Player.h:143
float setScale(float s)
Definition: Player.cpp:221
void setWidth(size_t w)
Definition: Player.h:102
int getControlFD() const
Definition: Player.h:159
void setDoRender(bool b)
Definition: Player.h:118
void setScreenShotQuality(int quality)
Set the quality for screenshot output.
Definition: Player.h:205
int getHostFD() const
Definition: Player.h:147
boost::int32_t x
Definition: BitmapData_as.cpp:434
Definition: GnashKey.h:148
size_t getYPosition() const
Definition: Player.h:112
Definition: GnashKey.h:154
std::string url
Definition: gnash.cpp:58
Definition: GnashKey.h:151
Abstract base class for hosting app handler.
Definition: HostInterface.h:207
tuple w
Definition: test.py:8
void setStartFullscreen(bool x)
Definition: Player.h:163
void setDoSound(bool b)
Definition: Player.h:120
void setDoLoop(bool b)
Definition: Player.h:116
std::string name
Definition: LocalConnection_as.cpp:151
void setYPosition(int yPos)
Definition: Player.h:111
void setParam(const std::string &name, const std::string &value)
Definition: Player.h:139