010101 Oh you took the right decision. Just found out that iOS 13 does not play the html5 audio from any web page in the background if it has a loop tag to it. Very smart, eh!

a month later

010101 thank you for your good work.
I'd like to ask some questions:

  1. Can music be played automatically?
  2. Video does not support mobile HTML5?

    samtto

    1. No. I thought about adding this but, this would mean any forum member could post a music player which auto plays which could be unexpected and annoying. Also, many devices, like the iPhone, block auto playing anyway.
    2. This is solely an audio BBCode; it has nothing to do with video. But, you may use this formatting extension to make video URLs auto embed.
    2 months later
    • [deleted]

    Can we embed mp3 files stored with Google Drive?

      3 months later

      [deleted] As long as the file ends in .mp3, .mp4, .wav, or some audio extension.

      4 months later
      2 months later
      5 months later
      a month later

      The shortcode in which I link to a local mp3 file is giving me view of the player and an unplayable audio.

      Any reason why it may be the case? Does this extension conflict with any other ones, like FoF Upload?

        My shortcodes are related to radio online mp3 files and this helps us to speed up the radio transmission. It's great, isn't it?

        010101

        Is there a way to make it work with FoF Upload? Or do I have to deactivate it?

        It's hard to figure out the full path to the MP3 file from the Media Manager window.

        Or is there another audio player which works better with FoF Upload?

          nickdecker What’s it look like after you upload an audio file? Is it a link? An icon? I’ve never uploaded an audio file with the upload extension. Only images.

            2 months later

            010101

            It looks like a box which displays the size of the file, it's name and also gives the button to download it.

              nickdecker That's what I was afraid of. Sorry, this extension won't work like that. This is just for converting raw audio URLs into a player. There is no extension which will convert the upload into a player at this time.

              Such an extension would have to convert FoF Upload's BBCode back to a raw URL somehow. Or, override it. It's not something I can work on at this time.

                a month later

                Is there a way to disable the download file function in the audio player? I'm creating a songwriting forum and don't want people to be able to download the file easily.

                  whisperwow Not currently, but that option can be added. I’ll make a note to add this option.

                  Maybe the format could be download=no and that would add this HTML audio variable: controlsList="nodownload".

                  However, if you want no download by default so that your users don’t have a choice, that would be a custom BBCode that I could make just for your forum.

                    010101 Yes I would like “No Download” by default. Please let me know what you need to make this happen. Thanks!

                      whisperwow

                      Please remove the version you have installed and instead install:

                      composer require 2nrwls/audio:"*"

                      Thank you...that worked great!

                      I don't get paid until next Friday, but will be happy to send a donation your way. Do you prefer through Flarum or do you have a "Give Me A Coffee" page?