Difference between revisions of "GenReS"

From ElphelWiki
Jump to: navigation, search
(Project Pages)
Line 6: Line 6:
 
*[http://sourceforge.net/projects/genres/ Mirror]
 
*[http://sourceforge.net/projects/genres/ Mirror]
 
== Static tag parameters ==
 
== Static tag parameters ==
;href: url of the file or stream;
 
 
;lowres: decimation for accelerated DCT (0-3);
 
;lowres: decimation for accelerated DCT (0-3);
 
;width: width of the object window;
 
;width: width of the object window;
 
;loop: the iteration of the playback (0 or nothing is infinitely);
 
;loop: the iteration of the playback (0 or nothing is infinitely);
 
;fps: frame frequency;
 
;fps: frame frequency;
;src: as yet simply another name for href.
 
  
 
== Dynamic variables (also it is possible to use they as the parameters of tags) ==
 
== Dynamic variables (also it is possible to use they as the parameters of tags) ==
 +
;href: url of the file or stream;
 +
;src: as yet simply another name for href.
 
;pause=1 or play=0: to pause player;
 
;pause=1 or play=0: to pause player;
 
;pause=0 or play=1: to continue playback;
 
;pause=0 or play=1: to continue playback;
Line 26: Line 26:
 
Now strings simply are splitted into two parts on the first of the symbols '=' or ':'.
 
Now strings simply are splitted into two parts on the first of the symbols '=' or ':'.
 
The left part becomes a name of the variable (gaps and nonlatin letters are removed) and the right part is a value.
 
The left part becomes a name of the variable (gaps and nonlatin letters are removed) and the right part is a value.
;V:the message of mplayer about last frame;
+
;frame: the message of mplayer/mencoder about last frame;
;A:the same but if a sound exists;
 
 
;error: last error message;
 
;error: last error message;
 
Others variables are possible but they are not used as yet.
 
Others variables are possible but they are not used as yet.

Revision as of 05:52, 2 February 2006

in English | [[{{{de}}}|deutsch]] | [[{{{fr}}}|français]] | по-русски | автоперевод | 中文版 | 机械翻译


Project Pages

Static tag parameters

lowres
decimation for accelerated DCT (0-3);
width
width of the object window;
loop
the iteration of the playback (0 or nothing is infinitely);
fps
frame frequency;

Dynamic variables (also it is possible to use they as the parameters of tags)

href
url of the file or stream;
src
as yet simply another name for href.
pause=1 or play=0
to pause player;
pause=0 or play=1
to continue playback;
run=1
to start player again if it was terminated (by error or end of file);
run=0
to terminate player;
save
to run mencoder instead of mplayer;
save=ask
to always ask the name of file for recording;
save=auto
not to ask if user sets it in dialog

Status variables

This the fact that outputs mplayer or mencoder. Now strings simply are splitted into two parts on the first of the symbols '=' or ':'. The left part becomes a name of the variable (gaps and nonlatin letters are removed) and the right part is a value.

frame
the message of mplayer/mencoder about last frame;
error
last error message;

Others variables are possible but they are not used as yet.

run
special variable, the state of player process: 0 - not running, 1 - running;
pause, play
it is analogous - the pause state.

Callback functions

On the arrival of data from a player it is transferred to the variables of object and it become accessible from javascript. In this case if it is assigned the function with the corresponding name "on<variable_name>" will be called.

onrun
be called on starting and stopping of playing or recording processes;
onerror
on error message;
onV or onA
on each frame playing.
onmousedown and other standard callbacks
are given already by browser and do not need some code inside the plugin.