Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • 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. General Discussion
  3. Full screen youtube video autoplay

Full screen youtube video autoplay

Scheduled Pinned Locked Moved General Discussion
6 Posts 2 Posters 637 Views
  • 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.
  • J Offline
    J Offline
    J199
    wrote on Dec 17, 2018, 10:53 AM last edited by J199 Jan 5, 2019, 6:53 AM
    #1

    Hey Armin. I'm trying to implement a full screen youtube video (with autoplay) as the first thing you see on the website.

    The current status is that I have the embed full screen however it's not autoplaying, it's not responsive and doesn't work when I switch on cover mode.

    I've set an id for the first row (which is set to full screen width and height).
    #fullscreenvideo

    I've then used the following code

    Custom HTML at Top
    <div id="fullscreenvideo">
    <iframe id="video" src="//www.youtube.com/embed/5iiPC-VGFLU " frameborder="0" allowfullscreen></iframe>
    </div>

    Custom <head> content
    <script>
    jQuery(function(){
    jQuery('#video').css({ width: jQuery(window).innerWidth() + 'px', height: jQuery(window).innerHeight() + 'px' });
    jQuery(window).resize(function(){
    jQuery('#video').css({ width: $(window).innerWidth() + 'px', height: jQuery(window).innerHeight() + 'px' });
    });
    });
    </script>

    Would really appreciate your help on this.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mariusjopen
      Global Moderator
      wrote on Dec 17, 2018, 10:56 AM last edited by
      #2

      Dear @JAW
      can you make the video to start with autoplay without fullscreen?

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • J Offline
        J Offline
        J199
        wrote on Dec 17, 2018, 3:48 PM last edited by
        #3

        Actually, no. I tried a couple things and that din't work either. Would be great if you have any suggestions.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mariusjopen
          Global Moderator
          wrote on Dec 19, 2018, 12:18 PM last edited by
          #4

          Dear @JAW
          can you make a test page where you have a video without fullscreen and the autoplay activated? Then I can have a look there.

          Best!

          Marius

          www.mariusjopen.world

          1 Reply Last reply
          0
          • J Offline
            J Offline
            J199
            wrote on Dec 23, 2018, 6:31 PM last edited by J199 Dec 23, 2018, 1:31 PM
            #5

            Hi Marius,

            Unfortunately I can't get that to function, however i'd simply like to have the youtube video full screen and responsive in size so that the viewer can click to play.

            Thanks

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mariusjopen
              Global Moderator
              wrote on Dec 24, 2018, 2:04 PM last edited by
              #6

              Hi @JAW
              can you do a page which is not shown in your navigation – then users don't see it.
              There you can place a Youtube video and set it on autoplay.

              Then I can help.

              Best!

              Marius

              www.mariusjopen.world

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes

              1/6

              Dec 17, 2018, 10:53 AM


              I also code custom websites or custom Lay features.
              💿 Email me here: 💿
              info@laytheme.com

              Before you post:
              1. When using a WordPress Cache plugin, disable it or clear your cache.
              2. Update Lay Theme and all Lay Theme Addons
              3. Disable all Plugins
              4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

              This often solves issues you might run into

              When you post:
              1. Post a link to where the problem is
              2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
              3. If the problem is difficult to explain, post screenshots / link to a video to explain it
              Online Users
              J
              j36g2
              5 minutes ago
              M
              MWPA
              24 minutes ago
              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.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Recent
              • Tags
              • Popular
              • Users
              • Search