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 Player

Audio Player

Scheduled Pinned Locked Moved General Discussion
11 Posts 6 Posters 2.9k 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.
  • arminunruhA
    arminunruhA
    arminunruh
    Global Moderator
    wrote on last edited by
    #2

    hey, oh yea I need to make this work.

    Until then in the gridder use:

    "+more" -> "+html":

    <audio src="urltoyouraudio"></audio>
    

    find out your urltoyouraudio by going inside your media library and, and clicking on your audio file. this opens a modal with infos.

    1 Reply Last reply
    0
    • Y
      Y
      YYY
      wrote on last edited by
      #3

      Hi Armin,

      i followed your step but sadly it dosen't work with me.
      hope LAY has audio adding selection in gridder soon.

      1 Reply Last reply
      0
      • DMBD
        DMBD
        DMB
        wrote on last edited by
        #4

        @YYY @jazzzzza Hi I managed to embed audio - heres what you do:

        Upload your mp3 to the media library, then copy the link to where its stored.

        Go "+more > +html" and then paste this in:

        <!DOCTYPE html>
        <html>
        <body>

        <audio controls>
        <source src="yoururlherefrommedialibrary" type="audio/mpeg">
        Your browser does not support the audio element.
        </audio>

        </body>
        </html>

        That should work

        1 Reply Last reply
        0
        • Y
          Y
          YYY
          wrote on last edited by
          #5

          @DMB

          thank you so much it works!!

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

            nice!

            but i think it should only be

            <audio controls>
            <source src="yoururlherefrommedialibrary" type="audio/mpeg">
            Your browser does not support the audio element.
            </audio>
            

            without the html, body etc.

            1 Reply Last reply
            0
            • Y
              Y
              YYY
              wrote on last edited by
              #7

              @arminunruh said in Audio Player:

              <audio controls>
              <source src="yoururlherefrommedialibrary" type="audio/mpeg">
              Your browser does not support the audio element.
              </audio>

              Hi armin,

              I found it only works in the project, but if I use the code on the categories homepage, it will appears 403 Forbidden after I clicked update.

              "403 Forbidden

              A potentially unsafe operation has been detected in your request to this site.

              Generated by Wordfence at Tue, 10 Oct 2017 21:08:23 GMT.
              Your computer's time: Tue, 10 Oct 2017 21:08:33 GMT."

              How can I fix it?

              Best

              1 Reply Last reply
              0
              • mariusjopenM
                mariusjopenM
                mariusjopen
                Global Moderator
                wrote on last edited by
                #8

                Hi @YYY

                Can you post a link to your website?

                Best!

                Marius

                www.mariusjopen.world

                1 Reply Last reply
                0
                • T
                  T
                  townshend
                  wrote on last edited by townshend
                  #9

                  Hi, I'm having trouble getting the audio element to autoplay. any ideas?

                  <audio controls autoplay controlslist="nodownload noplaybackrate"> 
                      <source src="http://beetheballet.com/wp-content/uploads/2024/08/Home.m4a">
                      Your browser does not support the audio element.
                  </audio>
                  
                  1 Reply Last reply
                  0
                  • arminunruhA
                    arminunruhA
                    arminunruh
                    Global Moderator
                    wrote on last edited by
                    #10

                    hey since some years all browsers block autoplaying.
                    you can read more about it here:

                    https://developer.mozilla.org/en-US/docs/Web/Media/Autoplay_guide

                    T 1 Reply Last reply
                    0
                    • arminunruhA arminunruh

                      hey since some years all browsers block autoplaying.
                      you can read more about it here:

                      https://developer.mozilla.org/en-US/docs/Web/Media/Autoplay_guide

                      T
                      T
                      townshend
                      wrote on last edited by
                      #11

                      @arminunruh ah damn.. ok thanks for the heads up.

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