Audio (mp3 Not rendering

Support MB Views Audio (mp3 Not renderingResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26893
    Gene TeiglandGene 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/

    #26899
    Long NguyenLong 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 TeiglandGene 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 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.