Custom Fields
Re-Envisioned
Support MB Views Audio (mp3 Not rendering

  • Creator
    Topic
  • #26893
    Resolved Gene Teigland
    Participant

    I've been able to use the video field to upload and render video (.mp4) in MB Views but I am not able to do with audio (.mp3). It only provides the filename and link.

    1. I tried the Video field for audio but only shows the file name and link.
    2. I can't seem to find any field that renders the audio using MB Views.

    Here's a page to view that demonstrates my issue:
    https://thingsthatremain.org/message/the-way-of-the-rabbi/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #26899
    Long Nguyen
    Moderator

    Hi,

    You can use the <audio> HTML tag to embed sound content on your page. Read more on this documentation https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio.

    #26915
    Gene Teigland
    Participant

    Thanks that put me in the right direction. For those who want details here is what I did below in TWIG and it works well:

    {% for item in post.upload_audio %}
        <audio controls="" autoplay="" name="media"><source src="{{ item.src }}" type="audio/mpeg"></audio>
    {% endfor %}
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.