[Mplayerplug-in-cvs] mplayerplug-in/DOCS/tech javascript.txt,1.6,1.7
Brought to you by:
kdekorte
From: Kevin D. <kde...@us...> - 2005-10-20 16:04:54
|
Update of /cvsroot/mplayerplug-in/mplayerplug-in/DOCS/tech In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8616/DOCS/tech Modified Files: javascript.txt Log Message: Changed onMouseDown and onMouseUp to return the buttons Updated DOCS/tech/javascript.txt Index: javascript.txt =================================================================== RCS file: /cvsroot/mplayerplug-in/mplayerplug-in/DOCS/tech/javascript.txt,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** javascript.txt 25 Aug 2005 14:54:40 -0000 1.6 --- javascript.txt 20 Oct 2005 16:04:43 -0000 1.7 *************** *** 38,41 **** --- 38,42 ---- onMediaComplete + onMediaCompleteWithError(error) onEndOfStream onVisible *************** *** 43,46 **** --- 44,49 ---- onDestroy onClick + onMouseDown(button) + onMouseUp(button) Detail: *************** *** 138,141 **** --- 141,161 ---- <embed onEndOfStream='alert("media done");' src="http://host/some/media.mov"></embed> + onMediaCompleteWithError(error) + + Events that are triggered when the playlist is empty + error is an integer + ERROR_NO_ERROR 0 + ERROR_NO_STREAM 1 + ERROR_CODEC_FAILURE ERROR_NO_STREAM << 1 + ERROR_EXPLICIT_KILL ERROR_NO_STREAM << 2 + ERROR_PLAYER_INTERRUPTED ERROR_NO_STREAM << 3 + ERROR_EXECV ERROR_NO_STREAM << 4 + ERROR_NOT_PLAYLIST ERROR_NO_STREAM << 5 + ERROR_FILE_NOT_FOUND ERROR_NO_STREAM << 6 + + example: + + <embed onMediaCompleteWithError='error_handler(error)' src="http://host/some/media.mov"></embed> + onVisible *************** *** 159,161 **** onClick ! Event that is triggered when the embedded mplayerplug-in is clicked on. \ No newline at end of file --- 179,191 ---- onClick ! Event that is triggered when mouse button one is clicked over the plugin. ! ! onMouseDown(button) ! ! Event that is triggered when the mouse button is down over the plugin. ! button is an integer that is the button that is down ! ! onMouseUp(button) ! ! Event that is triggered when the mouse button is released over the plugin. ! button is an integer that is the button that is down |