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. General Discussion
  3. Audio in the background video

Audio in the background video

Scheduled Pinned Locked Moved General Discussion
video homepage
9 Posts 4 Posters 1.5k 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.
  • C Offline
    C Offline
    Charlotteleb
    wrote on last edited by
    #1

    Hello, Thanks for Laytheme. I want to have the audio of my background video (for the homepage). Please tell me how it's possible to put on the sound ! My website is : http://hitohadakan.com/
    Many thanks.

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

      Hey!
      Can you please update your website to the latest lay theme?
      Please enter this js into "Lay Options" -> "Custom CSS & HTML" -> "Custom <head> content"

      <script>
      Frontend.GlobalEvents.on("newpageshown", function(layoutObj, type, obj){
      	if(type == "page" && obj.id == 66){
      		jQuery("#cover-region .background-video").attr('muted', false).attr("volume", 0.5);
      	}
      });
      </script>
      

      Hmm I think this js should work. Right now it doesn't work for me when I try it on your website. Does your video have sound at all?

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

        Hey Charlotte, I guess this hasn't worked yet.
        I purposely removed the sound of row background videos because I think it is viewed as bad practice to play sounds when a user visits your website.

        Ok please take a look here http://laythemeforum.com/topic/725/use-a-video-as-page-background/6

        You can try to insert your video like that. But for the html remove " muted="" "

        Also you would need to remove your current row background video from the row on your homepage. I hope that works for you!

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

          Hello Charlotte!

          Lay theme 1.98 is now available. With that you can mute or unmute a row video background!

          Just right click on the row -> "set video background" and then uncheck "mute". :)

          M 1 Reply Last reply
          0
          • S Offline
            S Offline
            ssslandis
            wrote on last edited by
            #5

            Hello, I was wondering if there is a way to have audio on by default on autoplay on a video in the gridder and also in the intro? Thank you

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

              no since a few years this is a limitation set by browsers which cant be overriden

              1 Reply Last reply
              0
              • arminunruhA arminunruh

                Hello Charlotte!

                Lay theme 1.98 is now available. With that you can mute or unmute a row video background!

                Just right click on the row -> "set video background" and then uncheck "mute". :)

                M Offline
                M Offline
                Max.Weinland
                wrote last edited by
                #7

                @arminunruh Hey Armin, I am trying to do the same thing, activate the audio for a row background video. I have the latest version of lay theme and this checkbox for »mute« doesn’t show …

                1 Reply Last reply
                0
                • arminunruhA Offline
                  arminunruhA Offline
                  arminunruh
                  Global Moderator
                  wrote last edited by arminunruh
                  #8

                  sure

                  videos cant autoplay when they are not muted.
                  row background videos are meant to be autoplayed, and since they are in the background, they are not even like clickable

                  if you simply want a video that is for example browser height, you could insert a .mp4 video in +Video → +mp4 video. and then just use the fixed height setting in the sidebar:

                  grafik.png

                  1 Reply Last reply
                  0
                  • arminunruhA Offline
                    arminunruhA Offline
                    arminunruh
                    Global Moderator
                    wrote last edited by
                    #9

                    but next update will include the checkbox for showing the unmute button for row background videos, i think this is a good solution:

                    grafik.png

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


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

                    Our Web Development company: 100k.studio

                    Want to tip me? https://www.paypal.com/paypalme/arminunruh

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