Gnash  0.8.11dev
Public Member Functions | List of all members
gnash::Player Class Reference

#include <Player.h>

Public Member Functions

 Player ()
 
 ~Player ()
 
void run (int argc, char *argv[], const std::string &infile, const std::string &url="")
 Play the movie at the given url/path. More...
 
float setScale (float s)
 
void setDelay (unsigned int d)
 
void setWidth (size_t w)
 
size_t getWidth () const
 
void setHeight (size_t h)
 
size_t getHeight () const
 
void setXPosition (int xPos)
 
size_t getXPosition () const
 
void setYPosition (int yPos)
 
size_t getYPosition () const
 
void setWindowId (unsigned long x)
 
void setDoLoop (bool b)
 
void setDoRender (bool b)
 
void setDoSound (bool b)
 
void setMaxAdvances (unsigned long ul)
 
void setBaseUrl (const std::string &baseurl)
 Set the base url for this run. More...
 
float setExitTimeout (float n)
 
void setParam (const std::string &name, const std::string &value)
 
void setHostFD (int fd)
 
int getHostFD () const
 
void setMedia (const std::string &media)
 
void setControlFD (int fd)
 
int getControlFD () const
 
void setCookiesIn (const std::string &filename)
 
void setStartFullscreen (bool x)
 
void hideMenu (bool x)
 
void setAudioDumpfile (const std::string &filespec)
 
void setRenderer (const std::string &x)
 
void setHWAccel (const std::string &x)
 
void setScreenShots (const std::string &screenshots)
 This should be a comma-separated list of frames. More...
 
void setScreenShotFile (const std::string &file)
 Set the filename for screenshot output. More...
 
void setScreenShotQuality (int quality)
 Set the quality for screenshot output. More...
 

Detailed Description

This class is an attempt at simplifying the code required to simply start the SWF player. The idea was to use it from the plugin so we can set callback for getUrl and fs_commands w/out the need of using FIFOs or sockets or whatever else.

Constructor & Destructor Documentation

§ Player()

Player::Player ( )

§ ~Player()

Player::~Player ( )

References gnash::log_debug().

Member Function Documentation

§ getControlFD()

int gnash::Player::getControlFD ( ) const
inline

§ getHeight()

size_t gnash::Player::getHeight ( ) const
inline

§ getHostFD()

int gnash::Player::getHostFD ( ) const
inline

§ getWidth()

size_t gnash::Player::getWidth ( ) const
inline

§ getXPosition()

size_t gnash::Player::getXPosition ( ) const
inline

§ getYPosition()

size_t gnash::Player::getYPosition ( ) const
inline

§ hideMenu()

void gnash::Player::hideMenu ( bool  x)
inline

References x.

§ run()

void Player::run ( int  argc,
char *  argv[],
const std::string &  infile,
const std::string &  url = "" 
)

§ setAudioDumpfile()

void gnash::Player::setAudioDumpfile ( const std::string &  filespec)
inline

§ setBaseUrl()

void gnash::Player::setBaseUrl ( const std::string &  baseurl)
inline

Set the base url for this run.

The base url will be used to resolve relative urls on load requests.

§ setControlFD()

void gnash::Player::setControlFD ( int  fd)
inline

§ setCookiesIn()

void gnash::Player::setCookiesIn ( const std::string &  filename)
inline

§ setDelay()

void gnash::Player::setDelay ( unsigned int  d)
inline

References gnash::key::d.

§ setDoLoop()

void gnash::Player::setDoLoop ( bool  b)
inline

References gnash::key::b.

§ setDoRender()

void gnash::Player::setDoRender ( bool  b)
inline

References gnash::key::b.

§ setDoSound()

void gnash::Player::setDoSound ( bool  b)
inline

References gnash::key::b.

§ setExitTimeout()

float gnash::Player::setExitTimeout ( float  n)
inline

References gnash::key::n.

§ setHeight()

void gnash::Player::setHeight ( size_t  h)
inline

§ setHostFD()

void gnash::Player::setHostFD ( int  fd)
inline

§ setHWAccel()

void gnash::Player::setHWAccel ( const std::string &  x)
inline

Set the hardware video accleration backend, none, vaapi. This is set in the users gnashrc file, or can be overridden with the –hwaccel option to gnash.

References x.

§ setMaxAdvances()

void gnash::Player::setMaxAdvances ( unsigned long  ul)
inline

§ setMedia()

void gnash::Player::setMedia ( const std::string &  media)
inline

§ setParam()

void gnash::Player::setParam ( const std::string &  name,
const std::string &  value 
)
inline

References name.

§ setRenderer()

void gnash::Player::setRenderer ( const std::string &  x)
inline

Set the renderer backend, agg, opengl, or cairo. This is set in the users gnashrc file, or can be overridden with the –renderer option to gnash.

§ setScale()

float Player::setScale ( float  s)

§ setScreenShotFile()

void gnash::Player::setScreenShotFile ( const std::string &  file)
inline

Set the filename for screenshot output.

A f in the filename will be replaced with the frame number.

§ setScreenShotQuality()

void gnash::Player::setScreenShotQuality ( int  quality)
inline

Set the quality for screenshot output.

A f in the filename will be replaced with the frame number.

§ setScreenShots()

void gnash::Player::setScreenShots ( const std::string &  screenshots)
inline

This should be a comma-separated list of frames.

Only numbers and the word "last" are valid. We parse the string here rather than in gnash.cpp to avoid making the interface to Player more complicated than it is already.

§ setStartFullscreen()

void gnash::Player::setStartFullscreen ( bool  x)
inline

References x.

§ setWidth()

void gnash::Player::setWidth ( size_t  w)
inline

§ setWindowId()

void gnash::Player::setWindowId ( unsigned long  x)
inline

References x.

§ setXPosition()

void gnash::Player::setXPosition ( int  xPos)
inline

§ setYPosition()

void gnash::Player::setYPosition ( int  yPos)
inline

The documentation for this class was generated from the following files: