Categories

  • Access & Security 95
  • Administration 172
  • Advertisement 92
  • Audio & Video 66
  • Author & Content 99
  • Comments 96
  • Communication 110
  • Communities & Forums 84
  • Development 47
  • E-Commerce 76
  • Email Management 53
  • Events & Calendars 80
  • Language 25
  • Map & Weather 44
  • Migration & Conversion 28
  • Miscellaneous 254
  • Mobile 15
  • Photos 143
  • Plugins 260
  • SEO & Site Speed 118
  • Social 186
  • Theme Enhancement 169



  • Add this plugin to a List

    You need to be logged in to add this plugin to your list.

    Fluid Video Embeds

    Add to List

    This plugin modifies the built-in Vimeo and YouTube oEmbed auto-embeds so they are full-width, and flexible while maintaining their original aspect ratio.

    As of version 1.2.2 it contains English, Portuguese (BR), and Spanish translations.

    See a live demo here: Fluid Video Embeds Demo

    Requirements: PHP5+, WordPress 3.3+

    Usage: Install the plugin, activate it, then your YouTube and Vimeo embeds should start to ignore the setting in Settings > Media > Maximum embed size You don’t need to use embed code or a shortcode, you can simply paste the YouTube or Vimeo URL into your post and it should work.

    You can also use the [fve] shortcode:

    [fve]http://youtu.be/oHg5SJYRHA0[/fve]
    

    If you want to use the Fluid Video Embeds method in a php template file in your theme, you can use the do_shortcode method:

    <?php echo do_shortcode('[fve]http://youtu.be/oHg5SJYRHA0[/fve]'); ?>
    

    You can filter the YouTube and or Vimeo URLs like this if you want to customize them (like explicitly specifying the https scheme):

    // Filter the iframe URL for Vimeo
    add_filter( 'fve_vimeo_iframe_url', 'fve_vimeo_iframe_url', 10, 2 );
    function fve_vimeo_iframe_url( $vimeo_iframe_url, $video_meta ) {
      return 'https://player.vimeo.com/video/' . $video_meta['id'] . '?portrait=0&byline=0&title=0';
    }
    

    Check the source to see all of the filters by searching for apply_filters(

    How It Works

    The Fluid Video Embeds plugin aims to cleanly display YouTube and Vimeo videos while allowing them to be fluid(elastic/felxible) as well. The technique for doing this is not very new (and is outlined in the credits links below), however I’ve added a bit of “sugar” to the mix. Since Vimeo and YouTube have robust, open APIs, I’m requesting information about each video server side (which is then cached) and used to determine the optimal aspect ratio for the video container.

    Credits

    Rate This Plugin

    Please Login to Rate this Plugin!

    Function

    Feature

    Support

    0 Votes
    Not Rated Yet

    Wordpress.org Stats

    Ratings4.9
    Votes41
    Downloads83,440
    Last Updated288 Days ago
    Published5 years ago

    Report Wrong Category!