Gnash
0.8.11dev
|
#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... | |
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.
Player::Player | ( | ) |
Player::~Player | ( | ) |
References gnash::log_debug().
|
inline |
|
inline |
Referenced by main().
|
inline |
|
inline |
Referenced by main().
|
inline |
|
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.
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.
The StreamProvider uses the actual URL of the loaded movie.
References _, gnash::SWF::addDefaultLoaders(), gnash::MovieFactory::clear(), gnash::createAOS4Gui(), gnash::createAQUAGui(), gnash::createDumpGui(), gnash::gui::createFBGui(), gnash::createFLTKGui(), gnash::createGTKGui(), gnash::createHaikuGui(), gnash::createKDEGui(), gnash::createQt4Gui(), gnash::createRISCOSGui(), gnash::createSDLGui(), gnash::RcInitFile::getDefaultInstance(), gnash::RcInitFile::ignoreFSCommand(), gnash::GnashFactory< T, Init, Key >::instance(), gnash::log_debug(), gnash::log_error(), gnash::log_unimpl(), gnash::ExternalInterface::makeInvoke(), name, gnash::key::p, ret, gnash::movie_root::SCALEMODE_EXACTFIT, gnash::movie_root::SCALEMODE_NOBORDER, gnash::movie_root::SCALEMODE_NOSCALE, gnash::movie_root::SCALEMODE_SHOWALL, gnash::movie_root::SCRIPT_ACCESS_ALWAYS, gnash::movie_root::SCRIPT_ACCESS_NEVER, gnash::movie_root::SCRIPT_ACCESS_SAME_DOMAIN, gnash::RcInitFile::startStopped(), gnash::URL::str(), gnash::stringToStageAlign(), url, test::v, and gnash::amf::write().
Referenced by main(), and playFile().
|
inline |
Referenced by main().
|
inline |
Set the base url for this run.
The base url will be used to resolve relative urls on load requests.
Referenced by main().
|
inline |
Referenced by main().
|
inline |
References gnash::NetworkAdapter::setCookiesIn().
Referenced by main().
|
inline |
References gnash::key::d.
Referenced by main().
|
inline |
References gnash::key::b.
Referenced by main().
|
inline |
References gnash::key::b.
Referenced by main().
|
inline |
References gnash::key::b.
Referenced by main().
|
inline |
References gnash::key::n.
Referenced by main().
|
inline |
References gnash::key::h.
Referenced by main().
|
inline |
Referenced by main().
|
inline |
|
inline |
Referenced by main().
|
inline |
Referenced by main().
|
inline |
|
inline |
float Player::setScale | ( | float | s | ) |
References _, gnash::RcInitFile::addLocalSandboxPath(), gnash::sound::create_sound_handler_aos4(), gnash::sound::create_sound_handler_mkit(), gnash::sound::create_sound_handler_sdl(), gnash::dbglogfile, gnash::RcInitFile::getDebugLog(), gnash::RcInitFile::getDefaultInstance(), gnash::RcInitFile::getTimerDelay(), gnash::LogFile::getVerbosity(), gnash::log_debug(), gnash::log_error(), gnash::noseek_fd_adapter::make_stream(), gnash::MovieFactory::makeMovie(), gnash::URL::path(), path, gnash::URL::protocol(), gnash::LogFile::setActionDump(), gnash::LogFile::setLogFilename(), gnash::LogFile::setParserDump(), gnash::LogFile::setVerbosity(), gnash::LogFile::setWriteDisk(), url, gnash::RcInitFile::useActionDump(), gnash::RcInitFile::useParserDump(), gnash::RcInitFile::useWriteLog(), and gnash::RcInitFile::verbosityLevel().
Referenced by main().
|
inline |
|
inline |
Set the quality for screenshot output.
A f in the filename will be replaced with the frame number.
References gnash::key::e.
Referenced by main().
|
inline |
|
inline |
Referenced by main().
|
inline |
Referenced by main().