Forum Discussion
Background Music in Rise
Hi Amber. Don't know if this is still an issue for you, but in case it is, the solution you're looking for here involves exporting the Rise course and then adding some key elements to the content folder:
Step 1
Paste a copy of the audio file you want to play in the background into the content folder. Note the name and file type (in this case, mp3)
Step 2
Once the audio file is in, open the index.html file with Notepad (or another code editor).
Step 3
Once you're in, locate the opening body tag <body>. It should precede the opening style tag <style>. Insert the following lines of code into the space between these two tags, replacing the bracketed pieces with the appropriate information (in my example, it would be "bgmusic.mp3"):
<audio autoplay="true" src="[name of your audio file].[file type]”>
</audio>
Hope that helps!
P.S. There is a way to provide audio controls (i.e., play/pause button) if you would prefer that:
<audio controls autoplay>
<source src="[name of your audio file].[file type]" type="audio/mpeg">
</audio>
Getting ready to try this soon, Does this code loop the music?
Related Content
- 3 months ago
- 28 days ago
- 11 months ago