20 #ifndef GNASH_PLAYER_H
21 #define GNASH_PLAYER_H
32 #include <boost/intrusive_ptr.hpp>
34 #include <boost/shared_ptr.hpp>
80 void run(
int argc,
char* argv[],
81 const std::string& infile,
const std::string&
url =
"");
88 #ifdef GNASH_FPS_DEBUG
96 void setFpsPrintTime(
float time)
101 #endif // def GNASH_FPS_DEBUG
135 float oldtimeout = _exitTimeout;
141 _params[
name] = value;
169 _startFullscreen =
x;
177 _audioDump = filespec;
197 _screenshots = screenshots;
204 _screenshotFile = file;
211 _screenshotQuality = quality;
219 std::string _hwaccel;
224 std::string _renderer;
229 CallbacksHandler(
Gui& gui,
const Player& player)
244 void notify(
const std::string& event,
const std::string& arg);
253 std::auto_ptr<CallbacksHandler> _callbacksHandler;
271 static unsigned int silentStream(
void* udata, boost::int16_t* stream,
272 unsigned int len,
bool& atEOF);
284 std::auto_ptr<Gui> getGui();
286 void setFlashVars(
const std::string& varstr);
288 typedef std::map<std::string, std::string, StringNoCaseLessThan> Params;
300 unsigned long _windowID;
305 std::string _baseurl;
322 boost::shared_ptr<sound::sound_handler> _soundHandler;
324 boost::shared_ptr<media::MediaHandler> _mediaHandler;
330 std::auto_ptr<RunResources> _runResources;
333 std::auto_ptr<Gui> _gui;
339 boost::intrusive_ptr<movie_definition> _movieDef;
341 unsigned long _maxAdvances;
349 boost::intrusive_ptr<movie_definition> load_movie();
351 #ifdef GNASH_FPS_DEBUG
362 bool _startFullscreen;
366 std::string _audioDump;
371 std::string _screenshots;
376 std::string _screenshotFile;
381 int _screenshotQuality;
Player()
Definition: Player.cpp:194
void setWindowId(unsigned long x)
Definition: Player.h:115
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:188
void setScreenShotFile(const std::string &file)
Set the filename for screenshot output.
Definition: Player.h:203
Definition: GnashKey.h:150
float setExitTimeout(float n)
Definition: Player.h:134
void setBaseUrl(const std::string &baseurl)
Set the base url for this run.
Definition: Player.h:130
SWFStream & s
Definition: DefineBitsTag.cpp:73
void setMaxAdvances(unsigned long ul)
Definition: Player.h:123
void setCookiesIn(const std::string &filename)
Definition: Player.h:164
void setControlFD(int fd)
Definition: Player.h:156
~Player()
Definition: Player.cpp:856
void setScreenShots(const std::string &screenshots)
This should be a comma-separated list of frames.
Definition: Player.h:196
void setRenderer(const std::string &x)
Definition: Player.h:183
Abstract base class for FS handlers.
Definition: HostInterface.h:199
void setXPosition(int xPos)
Definition: Player.h:109
boost::variant< HostMessage, CustomMessage > Message
Definition: HostInterface.h:213
size_t getWidth() const
Definition: Player.h:104
size_t getXPosition() const
Definition: Player.h:110
void hideMenu(bool x)
Definition: Player.h:172
static void setCookiesIn(const std::string &cookiesin)
Set CookiesIn variable to cookiefile path.
Definition: NetworkAdapter.h:96
size_t getHeight() const
Definition: Player.h:107
void setAudioDumpfile(const std::string &filespec)
Definition: Player.h:176
void setMedia(const std::string &media)
Definition: Player.h:152
void setHeight(size_t h)
Definition: Player.h:106
void setDelay(unsigned int d)
Definition: Player.h:86
Definition: GnashKey.h:160
Parent class from which all GUI implementations will depend.
Definition: gui.h:87
void setHostFD(int fd)
Definition: Player.h:144
float setScale(float s)
Definition: Player.cpp:221
void setWidth(size_t w)
Definition: Player.h:103
int getControlFD() const
Definition: Player.h:160
void setDoRender(bool b)
Definition: Player.h:119
void setScreenShotQuality(int quality)
Set the quality for screenshot output.
Definition: Player.h:210
int getHostFD() const
Definition: Player.h:148
boost::int32_t x
Definition: BitmapData_as.cpp:434
Definition: GnashKey.h:148
size_t getYPosition() const
Definition: Player.h:113
Definition: GnashKey.h:154
std::string url
Definition: gnash.cpp:59
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:168
void setDoSound(bool b)
Definition: Player.h:121
void setDoLoop(bool b)
Definition: Player.h:117
std::string name
Definition: LocalConnection_as.cpp:151
void setYPosition(int yPos)
Definition: Player.h:112
void setParam(const std::string &name, const std::string &value)
Definition: Player.h:140