Home | Trees | Indices | Help |
|
---|
|
The class used to load and play avg files.
Instance Methods | |||
|
|||
|
|||
ok |
|
||
node |
|
||
|
|||
framerate |
|
||
node |
|
||
time |
|
||
rate |
|
||
KeyModifier |
|
||
event |
|
||
node |
|
||
|
|||
|
|||
rate |
|
||
bool |
|
||
|
|||
|
|||
|
|||
|
|||
bitmap |
|
||
|
|||
|
|||
|
|||
|
|||
id |
|
||
|
|||
|
|||
|
|||
id |
|
||
|
|||
id |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Static Methods | |||
|
Class Variables | |
__instance_size__ = 452
|
Properties | |
pluginPath A colon-separated list of directories where the player searches for plugins when loadPlugin() is called. |
|
volume Total audio playback volume. |
|
Inherited from |
Method Details |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Adds a camera-based tracker to the avg player. The tracker can be configured using the default config file and immediately starts reporting events. |
Stops a timeout, an interval or an onFrameHandler from being called. Returns True if there was an interval with the given id, False if not.
|
Creates a new Node. This node can be used as parameter to DivNode::appendChild() and insertChild(). This method will create any type of node, including <div> nodes with children.
|
Enables or disables audio playback. If audio playback is disabled, no nodes with sound can be created. Mainly used to speed up the test suite. |
This method gives access to the player, which must have been created. before by calling the constructor. |
Returns the framerate that the player is actually achieving. The value returned is not averaged and reflects only the current frame.
|
Returns an element in the avg tree.
|
Returns the number of milliseconds that have elapsed since playback has tarted. Honors FakeFPS. The time returned stays constant for an entire frame; it is the time of the last display update.
|
Returns the current modifier keys (shift, ctrl) pressed. The return value is several KeyModifier values or'ed together.
|
Loads the avg file specified in filename.
|
load a Plugin and extend the XML DTD.
|
Parses avgString and loads the nodes it contains.
|
Opens a playback window or screen and starts playback. play returns when playback has ended. |
Sets the mouse cursor to the bitmap given. The bitmap must have a size divisible by 8 and an RGBA pixel format. The cursor generated is binary black and white with a binary transparency channel. hotspot is the relative position of the actual pointing coordinate in the bitmap. |
Sets a fixed number of virtual frames per second that are used as clock source for video playback, animations and other time-based actions. If a value of -1 is given as parameter, the real clock is used. FakeFPS can be used to get reproducible effects for recordings or automated tests. Setting FakeFPS has the side-effect of disabling audio.
|
Sets the desired framerate for playback. Turns off syncronization to the vertical blanking interval.
|
Sets display gamma. This is a control for overall brightness and contrast that leaves black and white unchanged but adjusts greyscale values. 1.0 is identity, higher values give a brighter image, lower values a darker one.
|
Sets a python callable object that should be executed regularly. setInterval returns an id that can be used to call clearInterval() to stop the function from being called. The callback is called at most once per frame.
|
Sets the position of the mouse cursor. Generates a mouse motion event.
|
|
Determines which OpenGL extensions to check for and use if possible. Mainly used for debugging purposes while developing libavg, but can also be used to work around buggy drivers. The values set here override those in avgrc. Note that with the exception of MultiSampleSamples, fallbacks are always used - if a feature is specified that the system doesn't support, a less demanding one will be used.
|
Sets a python callable object that should be executed once per frame. Returns an id that can be used to call clearInterval() to stop the function from being called.
|
Sets display engine parameters. Must be called before loadFile or loadString.
|
Sets a python callable object that should be executed after a set amount of time. setTimeout returns an id that can be used to call clearInterval() to stop the function from being called.
|
Sets the desired number of monitor refreshes before the next frame is displayed. The resulting framerate is determined by the monitor refresh rate divided by the rate parameter.
|
Sets the location of the player window. Must be called before loadFile or loadString. |
Shows or hides the mouse cursor.
|
Toggles player stop upon escape keystroke.
|
Property Details |
pluginPathA colon-separated list of directories where the player searches for plugins when loadPlugin() is called.
|
volumeTotal audio playback volume. 0 is silence, 1 passes media file volume through unchanged. Values higher than 1 can be used to amplify playback. A limiter prevents distortion when the volume is set to high.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jan 8 16:09:01 2010 | http://epydoc.sourceforge.net |