#include <Player.h>
List of all members.
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
Member Function Documentation
int gnash::Player::getControlFD |
( |
|
) |
const [inline] |
size_t gnash::Player::getHeight |
( |
|
) |
[inline] |
int gnash::Player::getHostFD |
( |
|
) |
const [inline] |
size_t gnash::Player::getWidth |
( |
|
) |
[inline] |
size_t gnash::Player::getXPosition |
( |
|
) |
[inline] |
size_t gnash::Player::getYPosition |
( |
|
) |
[inline] |
void gnash::Player::hideMenu |
( |
bool |
x |
) |
[inline] |
void Player::run |
( |
int |
argc, |
|
|
char * |
argv[], |
|
|
const std::string & |
infile, |
|
|
const std::string & |
url = "" | |
|
) |
| | |
Play the movie at the given url/path.
Run, used to open a new flash file. Using previous initialization.
- Parameters:
-
| argc | number of argument strings in argv |
| argv | argument strings |
| url | an optional url to assign to the given movie. if unspecified the url will be set to the movie path/url. |
The RunResources should be populated before parsing.
References _, gnash::SWF::addDefaultLoaders(), gnash::clear(), gnash::RcInitFile::getDefaultInstance(), gnash::GnashFactory< T, Init, Key >::instance(), gnash::key::p, root, gnash::RcInitFile::startStopped(), gnash::URL::str(), gnash::stringToStageAlign(), and url.
Referenced by gnash_main().
void gnash::Player::setAudioDumpfile |
( |
const std::string & |
filespec |
) |
[inline] |
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.
void gnash::Player::setControlFD |
( |
int |
fd |
) |
[inline] |
void gnash::Player::setDelay |
( |
unsigned int |
d |
) |
[inline] |
void gnash::Player::setDoLoop |
( |
bool |
b |
) |
[inline] |
void gnash::Player::setDoRender |
( |
bool |
b |
) |
[inline] |
void gnash::Player::setDoSound |
( |
bool |
b |
) |
[inline] |
float gnash::Player::setExitTimeout |
( |
float |
n |
) |
[inline] |
void gnash::Player::setHeight |
( |
size_t |
h |
) |
[inline] |
void gnash::Player::setHostFD |
( |
int |
fd |
) |
[inline] |
void gnash::Player::setHWAccel |
( |
const std::string & |
x |
) |
[inline] |
Set the hardware video accleration backend, none, vaapi, xv, or cairo. This is set in the users gnashrc file, or can be overridden with the --render-mode option to gnash.
void gnash::Player::setMaxAdvances |
( |
unsigned long |
ul |
) |
[inline] |
void gnash::Player::setMedia |
( |
const std::string & |
media |
) |
[inline] |
void gnash::Player::setParam |
( |
std::string & |
name, |
|
|
std::string & |
value | |
|
) |
| | [inline] |
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 --hwaccel option to gnash.
float Player::setScale |
( |
float |
s |
) |
|
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.
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.
void gnash::Player::setStartFullscreen |
( |
bool |
x |
) |
[inline] |
void gnash::Player::setWidth |
( |
size_t |
w |
) |
[inline] |
void gnash::Player::setWindowId |
( |
unsigned long |
x |
) |
[inline] |
void gnash::Player::setXPosition |
( |
int |
xPos |
) |
[inline] |
void gnash::Player::setYPosition |
( |
int |
yPos |
) |
[inline] |
The documentation for this class was generated from the following files: