-
The following code that has been posted in the docs doesn’t seem to work. I add it to the them functions.php and nothing happens. Grepping the plugin codebase for fv_flowplayer_scripts doesn’t even come up with anything.
add_filter(‘fv_flowplayer_scripts’, ‘my_fv_flowplayer_scripts’,10,3);
function my_fv_flowplayer_scripts( $script ) {
global $post;
if( get_post_meta( $post->ID, ‘tweak_player’, true ) ) {
$args = func_get_args();
$script .= “
jQuery(‘#{$args[1]}’).bind(‘ready’, function() {
alert( ‘Video just started!’ );
});
“;
}
return $script;
}