JW Player plugins |
There is also a Drupal preset plugin created for Google Analytics Pro2 JW player available in my sandbox. Custom modules can implement plugins by using the newly introduced hook_jw_player_plugin_info() in the JW Player module. The format to use this hook as described in jw_player.api.php is:
* Implements hook_jw_player_plugin_info()
*
* @return array Associative array of plugins keyed by actual plugin id
*/
function hook_jw_player_plugin_info($preset) {
// Create a plugin keyed by its actual plugin id
$plugins['foo'] = array(
As described above, the plugin is an associative array keyed by its actual plugin name as required by the player. The data basically consists of a friendly name and description, followed by configurable options that the site-administrator/editor can set per preset, which would look something like:
JW Player preset settings |