[[PlayerToc(plugins)]] = Clickproxy plugin = This plugin sends mouseclick information to javascript when a user clicks on the video display. Use it to build interactive video applications in javascript. A nice example from Lars Nyboe Andersen can be found here: * http://home5.inet.tele.dk/nyboe/flash/mediaplayer4/JW_FLV_Media_Player_Piano/ This plugin is compatible with version 4.1+ of the player. == Example == Here is an example of the clickproxy plugin in action. Below that is the string of flashvars used. In this example, the clickproxy logs to ''alert'', which will pop up the browser's built-in dialog box. The icons on the display are also hidden with the ''icons'' flashvar, to not confuse users. [[JWPlayer(400,250,file=/player/testing/files/bunny.flv&plugins=clickproxy&clickproxy.listener=alert&icons=false)]] {{{ file=/player/testing/files/bunny.flv&plugins=clickproxy&clickproxy.listener=alert&icons=false }}} == Configuration == The plugin is loaded with the flashvar ''plugins=clickproxy''. This will automatically load the latest version of the plugin straight off our servers. It offers one flashvar for tweaking the plugin: * '''clickproxy.listener''' (''clickListener''): The javascript function that receives the mouseclick info. This function receives an '''object''' with the following variables: * ''id'': id of the player in the HTML DOM * ''version'': the version of the JW Player * ''client'': the plugin client and version, e.g. FLASH WIN 9.0.124. * ''position'': the playback position of the video. * ''mousex'': the x position of the mouse in the display. * ''mousey'': the y position of the mouse in the display. * ''state'': the playback state of the video. == Source code == The source code of this plugin can be obtained [changeset:HEAD/plugins/clickproxy?old_path=%2F&format=zip in a zip] (click the zip links at the bottom) or through [http://subversion.tigris.org/ Subversion]: {{{ svn co http://developer.longtailvideo.com/svn/plugins/clickproxy }}} If you don't have a Subversion client, check out [http://tortoisesvn.tigris.org/ Tortoise] (Windows) or [http://scplugin.tigris.org/ SC Plugin] (MAC). You don't need Adobe Flash to modify this plugin. Instead, you can edit the plugin with any text editor you like. The plugin can be compiled with the free, cross-platform [http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk MXMLC compiler]. See our [wiki:PluginsCompiling plugin compiling overview] for more info.