Layerslider help

Hi i hopeyou can help me, how can i get the Youtube video i have inserted inside LayerSlider, to be Responsive?

As i have got the Slider to be responsive but the "Video" just will not :(

URL IS: http://www.1bigstoragesolutions.co.uk/beta/

Thanks
Aaron

Comments

  • Hi,

    As we know video should be on the last layer to resize in responsive

    Thanks!
  • Thanks, this works but one thing that doesnt is the Youtube Thumbnails image? it seems to be loading this:

    <div class="ls-vpcontainer"><img class="ls-videopreview" alt="Play video" src="//img.youtube.com/vi/kjt7LYeK4Xo/maxresdefault.jpg"><div class="ls-playvideo"></div></div>

    so how can i stop it loading that or how can i change it so can use my own :)

    Thanks
    Aaron
  • I fixed it i used this code:
    <div onclick="thevid=document.getElementById('thevideo'); thevid.style.display='block'; this.style.display='none'">
    <img style="cursor: pointer;" src="PREVIEW IMAGE URI HERE" alt="" />
    </div>

    <div id="thevideo" style="display: none;">
    iframe code here
    </div>

    And set the layerslider video to Autoplay :)
  • My bad, it doesnt work as now it is plays when you load the website :) with just audio :(
  • Sorted :) i changed Slider settings for video from Maximum quality to High :)
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.