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:

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.

Get the Flash Player to see this player.

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 in a zip (click the zip links at the bottom) or through Subversion:

svn co http://developer.longtailvideo.com/svn/plugins/clickproxy

If you don't have a Subversion client, check out Tortoise (Windows) or 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 MXMLC compiler. See our plugin compiling overview for more info.