1.8 – Support for RSS readers

From version 1.8 onwards Youtube Shortcode supports major RSS readers such as Google Reader or NetNewsWire to name a few.

Some RSS readers may not show any video (because they lack support for playing videos), but I’ve covered that case too and every video has a link that says “Watch this video on YouTube” as you can see in the screenshot below.

Videos in RSS readers will look and behave as they would in your website. So, for example, if you disabled to show related videos…they’ll be disabled in a RSS reader.

Finally, you don’t have to add or modify anything to make your videos compatible with RSS readers…the plugin is clever enough :)

Have a look at how videos look in Google Reader or, even better, subscribe to the RSS feed and experience it yourself.

1.8 – Aspect ratios (16:9 or 4:3)

From version 1.8 onwards you can set the aspect ratio of a Youtube video via the ratio parameter.

Possible values are: 16:9 for widescreen and 4:3

Here you are some examples:

16:9 aspect ratio

Shortocode parameters used:

v=CIcIyVQ3E_E ratio=16:9

4:3 aspect ratio

Shortocode parameters used:

v=CIcIyVQ3E_E ratio=4:3

1.8 – “class” parameter

In version 1.8 I’ve added the class parameter.

All it does is add class names to the video wrapper.

If you need to add 2 or more class names, all you have to do is wrap them between double quotes (class=”class1 class2″).

This way you can, for example, position a video to the right of your text in a post such as this one :)

Shortcode parameters used:

url=http://youtu.be/CIcIyVQ3E_E w=400 class=alignright

1.8 – Fluid layout (default)

This is the default layout from version 1.8 onwards. The video width will adjust to fit the width of its parent container.

This layout is suitable for any device wether it’s desktop (big screens) or mobile (smaller screens).

It doesn’t matter if a website uses a static, fluid or elastic layout, the video will adapt to fit.

Use this layout if you are designing either a mobile website or a website with fluid or elastic areas.

For example, if a mobile screen it’s only 300px wide the video player will adjust to the width of its parent container and thus, it will fit perfectly (it won’t break or overflow the layout/design).

Test it right now:

Visit this article with your mobile phone or resize the browser window and you’ll see how the video player adapts to fit.

How to use:

Simply put: Do not set the width and height parameters.

Shortcode parameters used:

v=CIcIyVQ3E_E