Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Feedback
  3. Thumbnails grid url video

Thumbnails grid url video

Scheduled Pinned Locked Moved Feedback
3 Posts 2 Posters 550 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    T
    ta_io
    wrote on last edited by
    #1

    It would be interesting to put an external URL in video thumbnails grid like one from Vimeo https://player.vimeo.com/ since the loading of videos is much faster.

    I'm trying with this script but it doesn't work at all

    <script>
    jQuery(document).ready(function() {
    var newVideoUrls = [
    // Video
    'https://player.vimeo.com/progressive_redirect/playback/929651530/rendition/1080p/file.mp4?loc=external&log_user=0&signature=43094fa43b31495020241416581fc9d0e435cbe0ba98802673cf86e9e7cb1211',
    // Video
    'https://player.vimeo.com/progressive_redirect/playback/843550565/rendition/1080p/file.mp4?loc=external&log_user=0&signature=59c985552b4e60df3819741c8df3f7e76aee3671dd4b88a07473eaeed6bb6542',
    // Video 3
    'https://player.vimeo.com/progressive_redirect/playback/981872045/rendition/2160p/file.mp4?loc=external&log_user=0&signature=985fc53ee963d4ab1b9770be6984a12b42c4ef8a3987895b1a0f38ebc3d9c690',
    // Video 4
    // ...
    ];

    jQuery('.thumb-collection .thumbnail-wrap video source').each(function(index) {
    if (index < newVideoUrls.length) {
    jQuery(this).attr({
    'data-src': newVideoUrls[index],
    'src': newVideoUrls[index]
    });
    }
    });
    });

    </script

    1 Reply Last reply
    0
    • arminunruhA
      arminunruhA
      arminunruh
      Global Moderator
      wrote on last edited by
      #2

      you need to use newpageshown

      window.laytheme.on('newpageshown', function(){

      })

      instead of jquery document ready
      https://laytheme.com/documentation/custom-javascript.html#newpage-events

      1 Reply Last reply
      0
      • arminunruhA
        arminunruhA
        arminunruh
        Global Moderator
        wrote on last edited by
        #3

        the videos aspect ratio is determined by a .ph container that gets a padding bottom css. you might need to adapt this too

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        Online Users
        I
        itsbadjujuju
        Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
        laytheme.com
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Recent
        • Tags
        • Popular
        • Users
        • Search