WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: WP YouTube Lyte] Host preview image on own server

[Resolved] [Plugin: WP YouTube Lyte] Host preview image on own server

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Frank Goossens

    @futtta

    Hi there h2so4_

    Serving thumbnails from your own server is not possible in the current version I’m afraid. If your prime reason for doing so is complying with privacy law (and specifically stopping cookies from being set), you could implement the following small change;

    in /wp-content/plugins/wp-youtube-lyte/lyte/lyte-min.js search for:
    background:url('"+b+"://img.youtube.com/vi/"+vid+"/0.jpg') no-repeat scroll center "+bgA+" rgb(0, 0, 0);background-size:cover;");
    and change that into:
    background:url('"+b+"://i.ytimg.com/vi/"+vid+"/0.jpg') no-repeat scroll center "+bgA+" rgb(0, 0, 0);background-size:cover;");

    this should load the preview-image for the cookie-less ytimg.com-domain. I’ll make sure to add this to the next version!

    Plugin Author Frank Goossens

    @futtta

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: WP YouTube Lyte] Host preview image on own server’ is closed to new replies.