I want to play an mp3 music file on the same page as an image. In other words, I want the music file player to show up under an image on a page. Can this be done? If so, how?
Yes, this can be done by attaching a File field to a content type. You can limit the types of files to audio files when you create the field. Then, in Manage Display for the content type, be sure to select "Audio" in the Format column for the file field. This will also allow you to indicate whether the controls should be visible, or enable autoplay, etc.
I did as you recommended but the audio file opens in a new window. I want the audio file to open under the image that is placed on the same content page not in a separate window.
I wrote raw html into the text area and sourced the image and the mp3 in the html. The image and the player display as I want them to, however, the mp3 does not play on a mobile device - either Android or ios. It does play on an iPad. Does anyone have insight on why this might be and how it can be fixed?
This backdrop site (https://www.agriturismoilfelcino.it/en) is how I want to build a multilingual site for a friend's business.
Is there a tutorial for how to do this, with the same...
Responses:
-I can edit nodes
-I can access the DB but will need help finding the items - not comfortable poking around.
- No errors or warnings in log after visiting pages...
Hmm... hard to tell. I don't see any module there that modifies the Backdrop routes for node editing etc.
Can you check if you can still edit notes? For example by going to node/NODE_ID/...
Posted7 hours 3 min ago by Alejandro Cremaschi (argiepiano) on:
Don't worry. Another way to help out is by testing fixes that others provide and clearly documenting and new issues you find in the issue queues. Sometimes that can be the thing that allows it...
Posted9 hours 5 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:
Comments
Hi Sasha.
Yes, this can be done by attaching a File field to a content type. You can limit the types of files to audio files when you create the field. Then, in Manage Display for the content type, be sure to select "Audio" in the Format column for the file field. This will also allow you to indicate whether the controls should be visible, or enable autoplay, etc.
Thank you for your reply, Permalink.
I did as you recommended but the audio file opens in a new window. I want the audio file to open under the image that is placed on the same content page not in a separate window.
Thanks for any help.
Sasha
Hello,
I wrote raw html into the text area and sourced the image and the mp3 in the html. The image and the player display as I want them to, however, the mp3 does not play on a mobile device - either Android or ios. It does play on an iPad. Does anyone have insight on why this might be and how it can be fixed?
Thank you.
Sasha
Hi,
This problem has been solved. The audio is playing on computer, tablet and phone. I'm using raw html on the page with the audio player enabled.
Sasha
@Sasha would you mind sharing what you had to do in raw html to make this work?
I typed in the box for content on a page and made the format option Raw Html instead of "filtered html":
<div style="text-align: center; background-color: #yourcolor;">
<p><span style="color: #yourtextcolor;">My Content Name</span> </p>
<img src="https://YourWebsiteName.com/locationOfYourImageImageName.jpg" alt="youralternatenameofyour image">
<audio controls>
<source src="location and audioname.mp3" type="audio/mpeg">
Your browser does not support the audio tag.
</audio>
</div>
It works on my pages.
I hope this is helpful to you.