WP YouTube Lyte

Description

WP YouTube Lyte permet le « chargement différé » des vidéos, en insérant des « Lite YouTube Embeds » responsives. Celles-ci ressemblent à des vidéos YouTube embarquées normales, mais n’appellent le « gros » lecteur YouTube que lorsqu’on clique dessus, ce qui permet de réduire la taille du téléchargement et le temps de rendu considérablement lors de l’intégration occasionnelle de YouTube et d’améliorer considérablement les performances des pages lorsque vous avez plusieurs vidéos YouTube sur une seule et même page. L’extension peut être configurée pour mettre en cache les miniatures de YouTube localement, ce qui améliore à la fois les performances et la confidentialité. Ainsi, les vidéos YouTube intégrées au LYTE ne nécessitent pas de requêtes aux serveurs YouTube, ce qui permet probablement (je ne suis pas juriste) de mieux respecter le RGPD.

L’extension reprend les liens normaux de YouTube, prenant le relais de l’oEmbed du cœur de WordPress. Vous pouvez aussi ajouter un lien YouTube pour une vidéo ou une liste de lecture complète avec « httpv » au lieu de « http(s) » ou ajouter un widget Lyte à votre colonne latérale et WP YouTube Lyte remplace ce lien par le code correct optimisé en termes de performances. Quelques exemples :

  • httpv://www.youtube.com/watch?v=_SQkWbRublY (vidéo embarquée normalement)
  • httpv://youtu.be/_SQkWbRublY (vidéo embarquées avec youtube-shortlink)
  • httpa://www.youtube.com/watch?v=_SQkWbRublY (uniquement son embarqué)
  • httpv://www.youtube.com/playlist?list=PLA486E741B25F8E00 (liste de lecture embarquée)
  • httpv://www.youtube.com/watch?v=_SQkWbRublY#stepSize=-1 (lecteur vidéo d’une taille inférieure à celle configurée par défaut)
  • httpv://www.youtube.com/watch?v=_SQkWbRublY?start=20&showinfo=0 (lecteur vidéo commençant la lecture à 20 secondes et masquant le titre)

Or using shortcodes:

 [lyte id='_SQkWbRublY' /]
 [lyte id='_SQkWbRublY' audio='true' /]
 [lyte id='A486E741B25F8E00' playlist='true' /]

WP YouTube Lyte a été écrit avec pour objectif principal d’obtenir des performances optimales, mais a été testé pour une compatibilité maximale avec les navigateurs (iPad inclus) tout en gardant un œil sur l’accessibilité. À partir de la version 1.2.0, les Lyte embarqués sont totalement responsives et peuvent automatiquement intégrer aussi videoObject microdata. L’extension est entièrement multilingue et prend en charge le catalan, le néerlandais, l’anglais, le français, l’allemand, l’hébreu, le roumain, l’espagnol et le slovène.

Les retours sont les bienvenus ; voir les infos dans la FAQ pour les rapports de bogues / demandes de fonctionnalités et n’hésitez pas à évaluer et / ou signaler la compatibilité sur wordpress.org.

Captures d’écran

Installation

Il suffit de l’installer depuis la page WordPress « Extensions | Ajouter » et tout ira bien. L’installation manuelle est aussi très simple :

  1. Téléversez le fichier zip et décompressez-le dans le répertoire /wp-content/plugins/.
  2. Activez-la via le menu Extensions dans l’admin WordPress
  3. Placez un lien vers un clip YouTube comme ceci : httpv://www.youtube.com/watch?v=_SQkWbRublY

FAQ

Pourquoi WP YouTube Lyte a-t-il besoin d’accéder à l’API de YouTube ? Qu’est-ce qu’une API de toute façon ?

Une API est un moyen de faire en sorte que deux logiciels se parlent pour échanger des informations. Dans ce cas, WP YouTube Lyte contacte YouTube pour lui demander la vignette, le titre et la description de la vidéo que vous avez ajoutée. La miniature et le titre sont visibles sur la page Web (dans le lecteur Lyte) tandis que la description est en HTML sous forme de microdonnées pour des raisons d’optimisation pour les moteurs de recherche (voir ci-dessous).

OK, maintenant, comment obtenir cette clé API ?

  1. Allez sur Google Developer Console et connectez-vous avec votre compte Google.

  2. Cliquez sur « CRÉER UN PROJET » et :

    • Saisir le nom du projet.
    • Saisir l’ID du projet.
    • Cliquez sur « CRÉER ».
  3. Sur la page suivante (ou lorsqu’il n’y a pas de page suivante, cliquez sur le nom de votre projet) :

    • Faites défiler vers le bas jusqu’à « YouTube Data API v3 » et cliquez dessus.
    • Cliquez sur « ACTIVER » en haut de la page pour activer l’API.
    • Optionnellement vous pouvez désactiver d’autres API.
  4. Dans la colonne latérale à gauche :

    • Cliquez sur « Identifiant ».
    • Cliquez sur « CRÉER DES IDENTIFIANTS » en haut de la page.
    • Cliquez sur « Clé API ».
    • Fixez le moins de restrictions possible, la plupart des problèmes de fonctionnement sont causés par ces réglages.
    • Cliquez sur « CRÉER ».
  5. Copiez votre clé API sur la page des réglages de WP YouTube Lyte.

I’m getting « technical errors » when validating my YouTube API key

In certain cases when adding restrictions the API key when tested might give technical warnings even if things are working correctly, make sure to check if new video’s are having the title displayed to confirm all is well.

WP YouTube Lyte fonctionnera-t-il sans clé API ?

Oui, à quelques exceptions près ; WP YouTube Lyte continuera à fonctionner, en rendant les lecteurs Lyte, mais sans le titre et les microdonnées (description, heure…) et sans les miniatures pour les listes de lecture.

Je ne veux pas de clé API, comment puis-je me débarrasser de la notification « clé API » ?

Il suffit de saisir « none » (sans les guillemets) dans le champ de la clé API et Lyte cessera de vous harceler.

Est-ce que WP YouTube Lyte protège la vie privée de mes visiteurs ?

Contrairement à certaines extensions plus importantes, il n’y a pas de code de suivi tiers dans WP YouTube Lyte, mais YouTube voit, bien sûr, les demandes des visiteurs arriver pour les miniatures, à moins que l’option de mise en cache locale des miniatures ne soit activée. Si les miniatures sont mises en cache localement, aucune demande ne sera envoyée à YouTube par le navigateur de votre visiteur jusqu’à ce que la vidéo soit diffusée.

J’utilise un constructeur de pages et LYTE ne semble pas actif sur les vidéos YouTube que j’y ajoute ?

LYTE utilise par défaut le filtre « the_content » de WordPress. Les créateurs de pages n’appliquent pas ce filtre à leur contenu et donc LYTE n’est pas déclenché sur ceux-ci. Pour contourner ce problème, vous pouvez soit ajouter le widget LYTE, soit ajouter la vidéo LYTE en utilisant le code court de votre bloc de texte du constructeur de page, ce qui fonctionne dans la plupart des constructeurs de page.

Puis-je utiliser WP YouTube Lyte pour un champ personnalisé ?

Il suffit de passer l’URL httpv d’un tel champ à lyte_preparse comme ceci :
if(function_exists(‘lyte_preparse’)) { echo lyte_preparse($video) ; }
et c’est prêt !

WP YouTube Lyte fonctionne-t-il avec Infinite Scroll ?

A partir de la version 1.1.0, c’est le cas ; dans la configuration de Infinite Scroll il suffit d’ajouter « ly.te() » dans la boîte « Javascript à appeler après avoir récupéré les prochaines publications ».

Comment WP YouTube Lyte prend-il en charge les microdonnées ?

  • Il existe un schéma de microdonnées spécifique à « videoObject » que WP YouTube Lyte peut ajouter à votre page, que Google peut utiliser pour afficher la minitaure de la vidéo à côté du résultat de la recherche
  • Cette option est facultative et peut être désactivée dans la page des options
  • Les microdonnées de l’objet vidéo ne sont PAS ajoutées pour les sons seul embarqués, les listes de lecture ou les widgets
  • Google n’affichera pas toujours la miniature, cela dépend probablement de la pertinence de la vidéo par rapport au reste de la page.

Comment les sous-titres sont-ils ajoutés aux microdonnées ?

En janvier 2014, Benetech, une association américaine à but non lucratif qui développe et utilise la technologie pour créer un changement social positif, a proposé un patch qui ajoute la propriété accessibilityFeature aux microdonnées pour les vidéos qui ont des légendes. Si vous avez activé les microdonnées, WP YouTube Lyte essaiera automatiquement de vérifier (dans un appel séparé et asynchrone via un service web mandataire, car YouTube ne propose que des sous-titres dans son API v3 qui nécessite une authentification) si les sous-titres sont disponibles et si c’est le cas, ajoute la propriété accessibilityFeature avec des sous-titres de valeur aux microdonnées. Cette propriété peut être désactivée en désactivant les microdonnées ou, si vous voulez des microdonnées, mais pas la propriété accessibilityFeature, en utilisant le filtre « lyte_docaptions » pour donner aux légendes la valeur « false » (le code exemple se trouve dans lyte_helper.php_exemple).

LYTE embarqués responsives

  • La largeur de la vidéo dans les billets et les pages s’adaptera à la largeur du conteneur (le div) dans lequel vos articles / pages sont affichés. Cela signifie que si votre thème est responsive, WP YouTube Lyte suivra.
  • Les widgets ne sont pas responsives.
  • Si la largeur de la div du contenu atteint environ 200 pixels, l’interface utilisateur LYTE sera déformé (YouTube exige que la largeur minimale d’intégration soit également de 200 pixels).

Puis-je utiliser WP YouTube Lyte sur des liens YouTube normaux ou des iframes ?

Oui, à partir de la version 1.5.0, les liens YouTube normaux sont automatiquement transférés dans l’intégration de Lyte également. Vous obtiendrez aussi automatiquement un aperçu (non-Lyte) de la vidéo dans votre fenêtre d’édition visuelle de la publication. À partir de la version 1.7.5 de LYTE, les iframes YouTube peuvent également être converties automatiquement.

Que puis-je faire avec l’API ?

Beaucoup de choses ; il y a des filtres pour pré-parser the_content, pour changer les réglages, pour changer le CSS, pour changer le HTML des LYTE-div… Il y a des exemples pour tous les filtres (et une action) dans lyte_helper.php_example

Le problème avec All In One Seo Pack

All in One SEO Pack par défaut génère une description qui contient toujours des liens httpv. Pour les retirer, vous devez utiliser (exemple de code dans) lyte_helper.php (voir ci-dessus) et ajouter lyte_filter_aioseop_description au filtre aioseop qui s’y trouve.

Lorsque je clique sur une vidéo de LYTE, un lien vers YouTube s’ouvre, qu’est-ce que cela signifie ?

Vous avez probablement ajouté un lien autour de l’URL httpv. Aucun lien n’est nécessaire, juste l’URL httpv.

Mes vidéos semblent se charger plus lentement sur les appareils mobiles.

Par défaut (à moins que l’option « Mettre en cache les miniatures » ne soit activée) WP YouTube Lyte chargera en effet des vidéos YouTube normales plus lentes que celles de Lyte, car les vidéos de Lyte nécessitent deux clics de l’utilisateur pour lire une vidéo (une fois pour charger la vidéo YouTube et une fois pour la démarrer) car il n’y a pas de support du démarrage automatique sur le mobile. Si vous le souhaitez, vous pouvez forcer WP YouTube Lyte à rendre la vidéo Lyte sur mobile avec ce code (ajoutez-le dans le fichier functions.php de votre thème enfant, dans une extension d’aide séparé ou en utilisant l’extension code snippets ;

add_filter( 'lyte_do_mobile', '__return_true' );

lyteCache.php is using a lot of resources

lyteCache.php is a standalone file (it does not rely on WordPress) that is used when local thumbnail caching is active, which means requests for those thumbnails are handled by PHP. In WP YouTube Lyte 1.7.14 logic was added to prevent lyteCache.php doing thumbnail caching when being called directy without « local thumbnail caching » being active.

Moreover if you want to ensure the thumbnails can only be used on your own site (and not hotlinked) you can use this code snippet:

add_filter( 'lyte_filter_local_thumb_doublecheck', '__return_true' );

This will have WP YouTube Lyte set (in JavaScript in the HTML) and check (in the request for the thumbnail) a cookie. If the cookie is not set, the image request will be redirected to the YouTube origin URL.

D’autres problèmes que je devrais connaître ?

  • Le fait d’avoir la même vidéo YouTube sur une page peut entraîner un dysfonctionnement de WP YouTube Lyte (car l’identifiant YouTube est utilisé comme l’identifiant du div dans le DOM, et les identifiants du DOM sont censés être uniques)

J’ai trouvé un bogue / J’aimerais qu’une fonctionnalité soit ajoutée !

Il suffit juste de me le dire. J’aime les réactions ! Utilisez la page contact de mon blog, laissez un commentaire dans un article sur WP YouTube Lyte ou créez un nouveau sujet sur le forum wordpress.org.

Comment puis-je aider ?

Avis

18 février 2024 2 réponses
Very nice idea and it works well. Thanks a lot.
6 février 2024 5 réponses
Hi, This plugin will not make your site gdpr compliant when using youtube videos. simply install add a video to your site and then do a test on cookiebot.com Dissappointing.
2 février 2024 1 réponse
After upgrading to PHP 8.3 I see an Deprecated error message regarding WP YouTube Lyte. Is it possible to look into this issue? Thank you very much.
6 janvier 2024 1 réponse
It keep increasing GSC pages "Crawled - currently not indexed", it adds tons of NEW pages, what a sh*t plugin is this After removing plugin, it gave many 404 errors, it stabs your back!!
16 novembre 2023 1 réponse
very easy to use, very effective support !
Lire les 202 avis

Contributeurs/contributrices & développeurs/développeuses

« WP YouTube Lyte » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs

“WP YouTube Lyte” a été traduit dans 14 locales. Remerciez l’équipe de traduction pour ses contributions.

Traduisez « WP YouTube Lyte » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.

Journal

1.7.23

  • fix for PHP deprecation notice in PHP 8.2 in lytePartners.php

1.7.22

  • fix for figcaption in WordPress video block disappearing (thanks Tomas Hartl !)
  • disabled « lyte kinda texturize » by default (an be re-enabled with a filter)

1.7.21

  • bugfix for regression in parsing improvements which in some cases saw links to youtube being shown as LYTE as well.
  • improvement to lyteCache request sanitation (hat tip to Siina Chavoshlu for reporting & testing the fix)
  • other minor changes, see GitHub commits

1.7.20

  • misc. parsing improvements, resulting in YT shorts working as well.

1.7.19

  • improvements to the alternative lazyload feature (kudos to Stirius & believableUN and softromano for helping/ testing!)
  • lyteCache: if maxresdefault.jpg does not exist, try hqdefault.jpg instead (contribution of R33D3M33R, thanks!)
  • some extra filters

1.7.18

  • small improvements to the integration with the YouTube API, thanks to enchamun and mountbatt for their assistance!

1.7.17

  • misc improvements as suggested by WordPress Plugins team
  • filter added to set description as proposed & contributed by Patrick Robertson
  • filter added to disable fallback to youtube thumbnail as proposed & contributed by Benjamin Pick
  • logic added to switch to different type of lazyload behavior proposed & contributed by @softmanro

1.7.16

  • removed old captions code (captions are not natively supported through the YouTube API + the Benetech backend was no longer working)
  • added extra sanitization, thanks m0ze!
  • optionally disable thumbnail fallback to youtube servers (contributed by Benjamin Pick)
  • general code cleanup (spaces, double -> single quotes around strings, …)
  • misc. smaller fixes/ improvements, see Github commits for details.

1.7.15

  • To avoid YouTube cutting API access because no requests were made for 3 months, LYTE now by default caches the YouTube data for 2 months, after which it is refreshed. Previously cached data only refreshed if the cache got cleared manually.

1.7.14

  • fix WordPress core blocks « recent posts block » breaking when summary or full article were shown.
  • remove old language-files (translations are now entirely handled via https://translate.wordpress.org/projects/wp-plugins/wp-youtube-lyte/
  • add logic to lyteCache.php to prevent (ab)use like e.g. hotlinking (needs to be enabled with lyte_filter_local_thumb_doublecheck filter) or lyteCache caching even if local thumbnail caching is off.
  • some smaller fixes.

1.7.13

  • fix regression causing HTML comments to break

1.7.12

  • fix for dash becoming double dash
  • move lyteThumbs.php to lyteCache.php because security solutions generally are traumatized by all things thumbs
  • add expiry for cached thumbnails (3 days) to ensure they are updated if the original image got changed
  • some other smaller changes, see https://github.com/futtta/wp-youtube-lyte/commits/main

1.7.11

  • fix playlist that got broken due to the priority change (from 4 to 10)
  • add is_amp (and is_feed) checks to the new lyte_prepare function (which runs at priority 4)

1.7.10

  • fix regression for YouTube embed WordPress block (https://wordpress.org/support/topic/errors-caused-by-upgrading-to-version-1-7-9/) due to changed priority in 1.7.9.

1.7.9

  • improved AMP checking (LYTE should never be active on AMP pages)
  • improvements to gutenberg block parsing
  • switch filter priority to 10 instead of 4 to allow « catching » more rendered YouTube videos
  • fix jsapi breakeage
  • misc. smaller changes/ fixes

1.7.8

  • misc. improvements to prevent structured data warnings from Google.
  • fix breaking locally cached thumbnails when mime_content_type function is not available.
  • tested with WordPress 5.3 (beta 3).

1.7.7

  • bugfix: avoid having to click play twice in Chrome (due to autoplay not working)

1.7.6

  • improvement: extra parameters for shortcode (start, showinfo, stepsize and hqthumb).
  • improvement: also turn youtube-nocookie.com iframes into LYTE’s as proposed by Maxim.
  • improvement: also remove cached thumbnails when clearing cache.
  • improvement: also set image in noscript tag to local hosted thumbnail if that option is active.
  • bugfix: when multiple iframes were on one page, the ones after the LYTE got lost (reported by Daniel Pardella, thanks).

1.7.5

  • improvement: also act on YouTube iframe code if « also act on YouTube links » is on.
  • improvement: if extracted from Gutenburg YouTube embed blocks keep the figure-tag with all relevant CSS classes and keep the caption (if set).

1.7.4

  • improvement: make sure locally cached thumbnails are served with good HTTP response headers (allowing HTTP 304 responses and allowing images to be cached in browser).
  • improvemnet: bigger widget sizes for use in pagebuilders.

1.7.3

  • switched YouTube to youtube-nocookie.com.
  • added span around description to ensure it can be styled separately.

1.7.2

  • new: you can add a text underneath each video (e.g. for privacy disclaimer purposes, think GDPR) by adding it on the settings-page
  • fix: thumbnails from LYTE without API key can now also be cached locally

1.7.1

  • Finally fixed a nasty bug that caused API key validation to fail on PHP 7.1 and higher. A big thank you to @emilyatal, @mkalina, @nicolaottomano, @aminech, @partounian, @nicksws who all provided valuable input in the WordPress LYTE support forum and tested multiple debug-versions to help fix this.

1.7.0

  • new: option to have thumbnail hosted locally to improve performance and privacy (I am not a lawyer, but this could make embedded YouTube GDPR compliant as not requests are sent to YouTube unless/ until the video is played).
  • removed option to add « easy youtube »-links (defunct)
  • make widgets not break HTTPS (thanks R33D3M33R)

1.6.8

  • new: support for Gutenberg blocks with embedded YouTube (tested with Gutenberg plugin version 2.3.0)
  • updated admin screen
  • misc bugfixes (see GitHub commit log for details)
  • confirmed working with WordPress 4.9.4

1.6.7

1.6.6

  • emergency bugfix; else was lost but now got found. sorry for that!

1.6.5

  • bug: PHP warning/ notices when title is empty, fix by kReEsTaL, thanks!
  • bug: YouTube player controls not visible in all browsers when loaded over HTTP, switching to HTTPS for all, as reported by georg6840tb

1.6.4

  • updated to latest YouTube UI, again thanks to Draikin. the bottom control is now hidden by defaults, see FAQ
  • added filter lyte_do_mobile to display lyte video instead of normal youtube on mobile as well, see FAQ
  • if WP YouTube Lyte is configured to load HD video, it will also show the maxresdefault.jpg thumbnail.
  • bugfix: on some mobile browsers WP YouTybe Lyte made the page too wide

1.6.3

  • changed Lyte widget constructor to PHP5-style object contructor
  • tested & confirmed working with WordPress 4.3

1.6.2

  • improvement: youtube playlist URL will now be recognized automatically and rendered LYTE as well (hat tip to markothaler for proposing this)
  • improvement: enter « none » in API key not to be bothered by the missing key notice any more (as requested by TheGiantRedFox1986)
  • improvement: if no API key (or « none » for key) is provided, don’t try to contact YouTube any more, instead just setting a thumbnail (does not work for playlists).
  • cleanup: removed code that catered to YouTube API v2.
  • updated French translations (merci Serge!)

1.6.1

  • fix for WP YouTube Lyte widgets not loading

1.6.0

1.5.0

  • New: WP YouTube Lyte can now also act on normal YouTube URL’s. This behavior is by default active on new installations and is by default off for upgrades (from 1.4.x) to avoid unexpected behavior.
  • Improvement (API): apply lyte_settings filter after after_setup_theme actoin as proposed by Yun
  • Improvement (API): added lyte_match_thumburl filter to set thumbnail as requested by Simon Barnett
  • Bugfix: for audio-only player make title visible to improve accessibility (for screenreaders) as requested by Octocorn
  • Bugfix: some playlists were not working, as reported by jpress
  • Updated most translations, added Ukranian (by Michael Yunat of getvoip.com and Serbian by Ogi Djuraskovic of firstsiteguide.com, kudo’s to all who helped!

1.4.2

  • Bugfix: Playlists in rss-feeds were broken
  • Bugfix: YouTube-link under a playlist was wrong
  • Improvement: example code in lyte_helper.php to also parse http-youtube-links now only triggers if the link is on a new line
  • Tested with WordPress 3.9

1.4.1

  • set interval for captionscheck to 30 days

1.4.0

  • new: if microdata is enabled, check if captions are available and if so add the accessibilityFeature=captions markup. Gracefully contributed by Benetech
  • bugfix: widgets with youtu.be short URL’s were broken (as observed by Robert of audio-times.com.
  • bugfix: in some cases iframe size on mobile was not correct (reported by David of webquarry.com.
  • bugfix: mobile rotation handled more efficiently (based on feedback from Skyfield

1.3.3

1.3.2

  • Added playlist support in the WP YouTube Lyte widget (forget to add it really, thanks to Ed Dingwall to remind me)
  • Added an alternative lytesprite version, created by Claes from PCPLAY.se. To switch, rename lyte/lytesprite.png to lyte/lytesprite_orig.png and then rename lyte/lytesprite_claes.png to lyte/lytesprite.png.
  • Fixed some PHP notices in widget.php

1.3.1

1.3.0

  • WP YouTube Lyte now has an API to allow its behavior to be changed, with extensive examples in lyte_helper.php_example
  • Support for higher quality thumbnails by adding #hqThumb=1 to httpv-link
  • You can disable microdata on a per-video level by adding #noMicrodata=1 to the httpv-link when microdata is enabled.
  • Checkbox on admin-page to flush WP YouTube Lyte cache (which holds title, description, … from YouTube)
  • added a lyte_preparse function to be used by themes/ plugins (input is the YouTube ID)
  • improvement: added opacity to the play-button when not hovered over
  • bugfix: suppress error messages if yt_resp does not contain all data
  • bugfix: solve PHP notice for pS-array in options.php

1.2.2

  • bugfix: apply sanitize_text_field to microdata description- and title-fields to escape e.g. quotes
  • bugfix: added CSS resets to better avoid CSS-conflicts with themes (as reported by longtime user FruityOaty)
  • bugfix: fallback for missing wp_trim_words function in wordpress < 3.3 (as reported by Armude)
  • bugfix: check if the data from cache/ youtube is valid before trying to extract info from it as reported by Collin
  • improvement: better support for RSS/ ATOM feeds as requested by drreen
  • added item in FAQ on how to force normal YouTube links to be parsed by WP YouTube Lyte as well
  • tested with WordPress 3.6 beta 1

1.2.1

  • bugfix: if e.g. modernizr added « audio » as class to the html element, wp youtube lyte got confused. reported by Peco of dubtechnoblog.com and Delphuk
  • tested succesfully with WordPress 3.6 (development-version)

1.2.0

  • LYTE embeds are now fully responsive
  • automatic inclusion of scheme.org microdata (VideoObject)
  • even better performance (less requests; was 5, now 3)
  • updated to current YouTube look & feel
  • less JavaScript, more CSS
  • bugfix: all lyte-output is now removed from excerpts

1.1.9

1.1.8

1.1.7

  • bugfix: 1.1.6 broke excerpts, as reported by Franz of noobtech.at

1.1.6

  • bugfix: remove noscript-stuff from the_excerpt as requested by wordpressvoxbox13
  • bugfix: switch HTTPS detection to is_ssl() WordPress function to avoid breakage on MS IIS
  • removed the « DoNotTrack » bonus feature due to added complexity, at least one bug and the fact that WP DoNotTrack does a better job at this

1.1.5

1.1.4

  • bugfix: audio-only youtube was broken due to changes at YouTube (thanks for reporting Adrian!)
  • bugfix: playlist embedding was somewhat broken (again due to changes at YouTube)
  • bugfix: httpv- or httpa- links were only found if the v-parameter was at the beginning of the querystring (as discovered by Mye)
  • added 2 new widget sizes (250X200px and 400X333px)

1.1.3

1.1.2

  • bugfix: during development of 1.1.0 the javascript to lazy load the lyte player got lost somehow, readded (now in lyte(-min).js)
  • performance: replaced the external stylesheet (lyte.css) with inline javascript that adds an internal stylesheet to the head of the document (thanks for pushing me Collin!

1.1.1

1.1.0

  • updated LYTE-player UI: larger display of preview image, changed look of title placeholder, updated controls image
  • new: added support for « Infinite Scroll » as proposed by « der Tuxman » and Olivier
  • new: added beta-support for YouTube’s JS API as requested by Yun
  • performance: remove double DOM-lookups in javascript, hat tip Yun
  • annoyance-avoidance: check for « Karma Blocker » addon and warn, based on feedback from Leona
  • translation: added Romanian, thanks to Alexander and Web Hosting Geeks
  • bugfix: 2nd video with start or showinfo parameters inherited the ones from the 1st one as well as reported by Josh D
  • bugfix: marked lyte img border css as !important
  • bugfix: moved inline javascript (for each lyte-div) to the footer of the page to solve conflict with some jQuery plugins in MSIE as reported by Yun
  • bugfix: set autohide to false for audio-only embeds

1.0.0

  • new: also works on (manual) excerpts; just add a httpv link to the « excerpt » field on the post/page admin (based on feedback from Ruben@tuttingegneri)
  • new: if youtube-url contains « start » or « showinfo » parameters, these are used when playing the actual video. This means that you can now jump to a specific time in the YouTube video or stop the title/ author from being displayed (based on feedback from a.o. Miguel and Josh D)
  • update: javascript now initiates either after full page load or after 1 second (whatever comes first), thus avoiding video not showing due to other requests taking too long
  • update: bonus feature stops lockerz.com tracking by addtoany (you’ll still want to hide the « earn pointz » tab though)
  • bugfix: prevent the playing video to be in front of e.g. a dropdown-menu or lightbox (thanks to Matt Whittingham)
  • bugfix: solve overlap between player and text when option was set not to show links (reported by Josh D)

0.9.4

  • security: WP YouTube Lyte now works entirely in https if your blog is running in https
  • performance (js/ page rendering): initiate the javascript a little later (at « load » instead of « DOMContentLoaded ») to speed up page load (might need further optimizations)
  • performance (php): have the plugin only include/ execute php when needed
  • updated donottrack.js to match the version used in my WP DoNotTrack-plugin. if want to tweak the way donottrack.js functions, you migth want to check that plugin out (and disable the option in WP YouTube Lyte)
  • bugfix: small tweak in css to force transparency of play-button

0.9.3

  • Bugfix: donottrack.js incorrectly handled document.write, causing javascript that depends on it to malfunction (reported by S.K., thanks for helping out!)
  • Bugfix: moved inline javascript into a function expression to protect values (d=document) from other javascript that might use global variables (thanks to Eric McNiece of emc2innovation.com for reporting & investigating)
  • Bugfix: made changes to widgets to allow a video to appear both in a blog post and in the widget bar and to allow httpv-links in there (although httpv is not needed in widgets) based on feedback from Nick Tann
  • Bugfix: changed priority of add_filter to ensure wp-youtube-lyte can work alongside of the new Smart Youtube Pro v4 (although this might become a problem again if/when a new version of Smart Youtube arrives)
  • Languages: added a full French translation (thanks Serge of blogaf.org)

0.9.2

  • solved bug with W3 Total Cache where the URL for lyte-min.js got broken (thanks to Serge of blogaf.org for reporting and helping figure this out)
  • some work on the bonus feature

0.9.1

  • even better xhtml-compliancy
  • fixed readme.txt problems

0.9.0

  • 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)
  • 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)

0.8.0

  • added support for playlists
  • added support for HD
  • dropped support for the legacy YouTube embed-code
  • updated UI elements to match new, dark YouTube player style
  • updated player sizes to match YouTube’s
  • added new translations: Spanish (front-end strings, thanks to Paulino Brener @Social Media Travelers) and German (complete, by « der Tuxman »)

0.7.3

  • sdded support for youtu.be links
  • added sl_SI translation (thanks Mitja MiheliČ @arnes.si)
  • load donottrack js in https if needed (thanks Chris @campino2k.de)
  • tested & confirmed to work perfectly with wordpress 3.2.1

0.7.2

  • fixed a bug introduced in 0.7.1 which caused httpv-links that were not on newline, not to be turned into a lyte-player
  • added audio as option for widgets as well (consider this beta, not thoroughly tested yet)

0.7.1

  • re-minized lyte-min.js (there’s lyte.js for your reading pleasure though)
  • thumbnail image in noscript-tags now inherits size of div (to keep it from messing up the layout when JS is not available, e.g. in a feedburner-feed)
  • the html5 version of the audio-player now is a bit higher (was 27px, now 33px) to allow scrolling through the clip
  • the html-output of the plugin now validates against xhtml 1.0 transitional (thanks for the heads-up Carolin)
  • text in frontend (i.e. what your visitors see) is translated into Dutch & French, corrections and other translations are welcome

0.7.0

  • new feature (as seen on Pitchfork): audio-only YouTube embeds (use « httpa:// » instead of « httpv:// »)
  • merged lyte-min.js and lyte-newtube-min.js into one file
  • added wmode=transparant when video is played in flash-mode

0.6.5

  • updated images for html5-version to new look&feel
  • disabled « watch later » by adding variable « probably_logged_in=false » to youtube embed
  • changed lyte/lyte.css (move margin from .lt to .lyte) to allow changes to positioning of player
  • changed name of js-variable in options.php to solve small bug in rss display
  • added an (experimental) bonus feature

0.6.4

0.6.3

  • only load jquery plugins on this plugin’s options page
  • change thumbnail positiong slightly (5 pixels up)
  • tested on WordPress 3.0.3

0.6.2

  • bugfix: the javascript in widgets.php caused a wp youtube lyte widget not to be shown in the sidebar if no wp youtube lyte was present in the main content
  • load jquery plugins in admin screen using wp_enqueue_script rather then adding them « manually »
  • store the selected feed on the admin-page in a cookie to show the same feed next time

0.6.1

  • widget size can now be set (3 sizes available, to be specified for each widget individually)
  • admin-page now contains links to most recent info (blogposts) on WP YouTube Lyte (and optionally WordPress and Web Technology in general) using the excellent jQuery-plugin zrssfeed
  • bugfix: removed CDATA-wrapper from javascript as WordPress turned ]]> into ]]&gt; which broke the html (which in turn broke syndication in e.g. planets)

0.6.0

  • There now is a WP-YouTube-Lyte widget which you can add to your sidebar (see under « Appearance »-> »Widgets »), as requested by the fabulous fruityoaty
  • The thumbnail is now stretched to use as much of the player as possible (thanks to css3’s background-size:contain directive, which works in all bleeding edge browsers)
  • Updated the « play »-button to fit the new YouTube style

0.5.3

  • we now wait for the DOM to be fully loaded (except for MS IE, where we have to wait for window.load) before kicking in, which means wp-youtube-lyte now functions correctly in Opera
  • fixed a bug where lyte’s javascript would overwrite the main div’s class-name (causing css-issues in some themes)
  • there’s new test-data on my blog that shows how fast wp-youtube-lyte really is.

0.5.2

  • fixed a bug where WordPress’ the_excerpt function showed wp-youtube-lyte javascript as text in excerpts
  • fixed problem where google tried to index e.g. options.php (which produced ugly php errors)
  • fixed some css-related bugs, do contact me (see FAQ) if LYTE-player isn’t rendered correctly in your wordpress-theme!
  • moved more css out of javascript to the static css-file

0.5.1

  • added new versions of images, fitting the player width (no more ugly rescaling)
  • moved a lot of css from javascript to a css-file which gets loaded on-the-fly

0.5.0

0.4.1

  • add fullscreen-button to player
  • disable size in options if html5 is selected
  • move player_sizes.inc to player_sizes.inc.php

0.4.0

  • add options to change player size (does not apply to html5-version)
  • noscript optimizations: show image (typically useful in rss-feeds), no text if config is to show links beneath lyte-player

0.3.5

  • changed function-name in options.php to avoid errors like « Fatal error: Cannot redeclare register_mysettings() »

0.3.4

  • tested succesfully on the brand new wordpress 3.0 release
  • css changes to avoid themes messing up lyte-player layout
  • minor text tweaks

0.3.3

0.3.2

  • fixed misc. readme.txt markdown issues (again)

0.3.0

  • added very experimental support for embedded html5 video (see faq)

0.2.2

  • improved the html of the form in options.php for better accessibility

0.2.1

  • 0.2.0 was broken (options.php M.I.A.), 0.2.1 fixes this

0.2.0

  • Added a simple admin-page to allow administrators to choose if links to YouTube and Easy YouTube are added or not
  • Added some bottom-margin to the lytelinks div

0.1.4

  • forgot to update version in the php-file for 0.1.3, causing the update not being fully propageted

0.1.3

  • small bugfix release (opacity of the play-button in Chrome/Safari)

0.1.2

Accessibility enhancements (hat tip: Ricky Buchanan):

  • added alt attributes to images
  • moved youtube link from noscript to div
  • added link to easy youtube

0.1.1

  • Changed meta-info in readme and php-file

0.1

  • Initial version