WordPress.org

Plugin Directory

Flowplayer HTML5 for WordPress

A beautiful, responsive, HTML5 video player plugin from the makers of Flowplayer.

Developer Docs

Filters

Actions

Examples

Here are a few code examples of things that have been asked.

/**
 * Load flowplayer assets on the home page for video 14.
 */
function fp5_has_shortcode( $has_shortcode ) {
    if ( is_front_page() ) {
        $has_shortcode[] = array(
            'id' => '123', // Define the video ID
        );;
    }
    return $has_shortcode;
}
add_filter( 'fp5_filter_has_shortcode', 'fp5_has_shortcode' );
/**
 * Change post type arg to support hierarchical format.
 */
function fp5_post_type_arg_hierarchical( $args ) {
    $args['supports']     = array( 'title', 'page-attributes' );
    $args['hierarchical'] = true;
    return $args;
}
add_filter( 'fp5_post_type_args', 'fp5_post_type_arg_hierarchical' );
/**
 * Display links for single video posts and activate archive page.
 */
function fp5_post_type_arg_video_post( $args ) {
    $args['public']      = true;
    $args['has_archive'] = true;
    return $args;
}
add_filter( 'fp5_post_type_args', 'fp5_post_type_arg_video_post' );
/**
 * Disable "Help Tooltip" - Add additional configuration options.
 */
function fp5_js_config( $config, $id ) {

    // Defne setting for video 15
    if ( '15' == $id ) {
        $config['tooltip']    = false;
    }
    $config['fullscreen'] = false;

    return $config;
}
add_filter( 'fp5_js_config', 'fp5_js_config', 10, 2 );
/**
 * Define post meta defaults
 */
function fp5_post_meta_defaults( $defaults ) {
    $defaults['fp5-no-embed'] = array( 'true' );
    return $defaults;
}
add_filter( 'fp5_post_meta_defaults', 'fp5_post_meta_defaults' );

Translation

Join the Translation Team

Credits

The plugin can also be found on GitHub.

Requires: 3.7 or higher
Compatible up to: 4.5.3
Last Updated: 4 months ago
Active Installs: 3,000+

Ratings

4.1 out of 5 stars

Support

0 of 6 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

50,2,1
100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
100,2,2
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 50,2,1 100,1,1 100,1,1
100,2,2 50,2,1
100,1,1
0,1,0
100,1,1
100,2,2