High performance YouTube video, playlist and audio-only embeds which don't slow down your blog and offer optimal accessibility.
When playing, HTML5 video will not be visible for everyone (see requirements). Indeed some visitors will see the fallback Flash video instead.
As opposed to some of the most important plugins there is no 3rd party tracking code in WP YouTube Lyte, but YouTube off course does see visitor requests coming in (see also the youtube-nocookie.com remark in Bugs/Issues below).
If you want to stop YouTube from setting cookies, add the "&showinfo=0" parameter to your httpv-url. This will prevent the call to the Youtube API, which is used to fetch the title of the video, and stop YouTube-cookies from being set when the LYTE-player is loaded. This however does not work for playlists (the API-call is needed to be able to present something meaningful). You should also take into account that any user actually playing the video, will always receive YouTube-cookies (as is the case with youtube-nocokie embeds as well).
As tested and confirmed by rumultik.ru's Dimitri (thanks for that man!), this indeed does work. Just pass the httpv url of such a field to lyte_parse like this:
if(function_exists('lyte_parse')) { echo lyte_parse($video); }
and you're good to go!
Starting from version 1.1.0 it does; in Infinite Scroll's configuration you just have to add "ly.te()" in the "Javascript to be called after the next posts are fetched"-box.
This was added as a beta feature in version 1.1.0; add ?enablejsapi=1 to the httpv URL. WP YouTube Lyte will pick this up, and add ?enablejsapi=1&origin= to the URL of the iFrame with the iFrame id being set to iF_. As soon as your visitors plays the video, you should be able to hook up with the video.
Sure, just add the following code-snippet in your theme's functions.php:
/** force wp youtube lyte on http://www.youtube.com url's as well */
add_filter('the_content', 'force_lyte_parse', 1);
function force_lyte_parse($content) {
$content=str_replace('http://www.youtube.com/watch?v=','httpv://www.youtube.com/watch?v=',$content);
return $content;
}
Just tell me, I like the feedback! Use the Contact-page on my blog, leave a comment in a post about wp-youtube-lyte or create a new topic on the wordpress.org forum.
Requires: 2.9 or higher
Compatible up to: 3.6
Last Updated: 2013-4-9
Downloads: 141,581
12 of 12 support threads in the last two months have been resolved.
Got something to say? Need help?