WP YouTube Lyte 0.9.0: size matters

I uploaded a new version of WP YouTube Lyte to the WordPress SVN repository earlier today. The markdown parser seems to be in a bad mood today and the changes in the readme.txt (the changelog, first and foremost) aren’t visible, so here’s what’s new in this release:

  • you can now change player size from the default one (as proposed by Edward Owen); httpv://www.youtube.com/watch?v=_SQkWbRublY#stepSize=-2 or httpv://youtu.be/_SQkWbRublY#stepSize=+1 will change player size to one of the other available sizes in your choosen format (4:3 or 16:9)
  • added a smaller 16:9 size and re-arranged player sizes on the options-screen
  • Bugfix: changed lyte-div ID to force it to be xhtml-compliant (ID’s can’t start with a digit, hat tip: Ruben of ytuquelees.net
  • Bugfix: added version in js-call to avoid caching issues (lyte-min.js?ver=0.8.1) as experienced by some users and reported by Ryan of givemeshred.com
  • Upgrade to the “bonus feature” to fix things (consider this beta though)
  • Languages: added Hebrew (by Sagive SEO) and Catalan (by Ruben of ytuquelees.net) translations and added completed Spanish version (thanks to Paulino Brener from Social Media Travelers)
  • tested succesfully on WordPress 3.3 (beta 2)

The (slightly smaller) lyte-embedded YouTube video to go with this release: “She wants” by Metronomy (very Japan-esque by the way):

Metronomy – She Wants

Watch this video on YouTube or on Easy Youtube.

As always, your feedback is welcome in the comments or via the contact form!

14 thoughts on “WP YouTube Lyte 0.9.0: size matters

    1. frank Post author

      you can add it to the params inside wp-content/plugins/wp-youtube-lyte/lyte/lyte-min.js. look for

      “?autoplay=1&rel=0&egm=0&iv_load_policy=3&probably_logged_in=false&hd=”
      and change that into
      “?autoplay=1&rel=0&egm=0&iv_load_policy=3&probably_logged_in=false&showinfo=0&hd=”

      hope this helps!

      Reply
      1. Miguel

        lol my fault…

        I have not sumbited httpv:// only hhtp:// this way the default embebed wordpress take place :D

        Sorry for this!
        Thanks for your fast response.

    1. frank Post author

      you’ll have to edit your old articles i’m afraid, as “wordpress video plugin” is not youtube-specific and as wp youtube lyte only works with httpv and httpa-links.

      Reply
  1. Julu

    Frank,

    Firstly, let me say I LOVE this plug-in. I have the widget in the sidebar, and used the bookmarklet to install it in posts. How the heck do I resize this puppy? I am NOT code savvy, but follow directions well. Please list specifics, ie “add this code to your index.php, etc” and specify what I need to update and where (before or after certain tags, etc). The vids need to be about 450×265 to fit inside my content areas. I’d also like them centered.
    Julu

    http://www.sisterchatter.com & http://www.sisterchatter.com/bamm

    Reply
    1. frank Post author

      Sure;

      1. open wp-content/plugins/wp-youtube-lyte/player_sizes.inc.php
      2. under “$pDefault=2;” add this block:
        $pSize[9]['a']=true;
        $pSize[9]['w']=450;
        $pSize[9]['h']=265;
        $pSize[9]['t']=__("especially for julu","wp-youtube-lyte");
        $pSize[9]['f']="169";
      3. look for “$pSizeOrder[‘169′]=array(8,1,3,5,7);” and change it into $pSizeOrder[‘169′]=array(9,8,1,3,5,7);
      4. save and close player_sizes.inc.php
      5. open wp-content/plugins/wp-youtube-lyte/lyte/controls-480.png in your favorite image editor
      6. resize it to have 450 width (keeping the height identical) and save it as wp-content/plugins/wp-youtube-lyte/lyte/controls-450.png
      7. in you wordpress admin-section go to wp youtube lyte’s settings and choose your new size

      The downside: this’ll get lost when upgrading.
      The upside: the next version should ship with flexible size options (free to choose + responsive, to work better on mobile)

      Hope this helps!
      frank

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>