YouTube Embed Version 2 Features – Part 1 : Embedding Options
This is part 1 of a series of posts providing details of some of the new functionality being added to my WordPress plugin YouTube Embed.
During this article any reference to YE is indicating YouTube Embed (and, more specifically, the currently unleased version 2).
Part 1 : Embedding Options
YE has the same embedding methods as before – PHP function call, widgets or the shortcode [youtube]. However, there are now a number of extra methods that can be used, many of which are to allow easy migration from other plugins.
In a later article I’ll talk about the multiple profiles that you can set up. In the meantime, it’s worth noting that for each of the following methods, a default profile can be specified allowing each to display differently.
Embedding with a URL
WordPress, by default, allows you to embed YouTube URLs simply by specifying them on their own line in a post. This uses some built-in oAuth functionality but there is no ability to tailor the output.
With YE, you will be given an option (switched off by default) to override this functionality and allow YE to take over. Any YouTube URLs then added to posts will then be shown using YE and any defaults you’ve assigned.
Embed in Comments
If you’d like your users to be able to embed videos within comments, activating an option in YE (again, defaults to off) will allow specification of a URL (as per the previous method) to create a YouTube video. With its own default profile, you can assign a video size that fits neatly with your comment output.
Further Migration Options
This is the big one. The bad boy. It allows you to migrate to YE from other plugins – the aim is to be compatible with 25 of the most popular alternatives. For further details on which plugins are supported and how to go about it, I’ve set up a dedicated page.
There are 2 ways to allow this…
1. Alternative Shortcodes
Many plugins simply work by using a different shortcode than YE. Some have multiple shortcodes – often one for defining HD quality video. Therefore YE offers you the ability specify 1 or 2 additional shortcodes.
So, as an example, if you’re migrating from WP YouTube Player, you simply set up an alternative shortcode of tube and you’ll find that any posts that worked under your previous plugin will now work with YE.
Some plugins have alternatives names for parameters that YE uses – e.g. the ID may be specified as url or youtubeurl. YE will automatically use these alternatives.
2. Non-shortcode Embedding
I couldn’t think of a better name for this but, essentially, some plugins use embedding methods which isn’t a straight URL and it’s not a shortcode. An example is Smart Youtube which uses a modified URL format – essentially, adding an extra letter to the protocol name at the beginning of the URL.
Turning on this option will activate detection of these embedding methods.
As it adds a slight performance hit – searching each post for all these different embedding types – this is switched off by default and should only be used if you’re migrating from one of the plugins that this works with.

Considering how regularly new versions of Firefox now come along, that's quite some bug fix list in version 10! 















Copyright © 2000-2012
Artiss.co.uk is checked by