How To Add Audio To Your Flipbook
In this short article we’re going to guide you through the process of adding an audio file to your flipbook that’s playing in the background.
Please keep in mind that we do not recommend it for most flipbooks because it will take the focus from your content. There are situations however where it could be a great addition. Content that is meant for kids (think music) or subtle background noises that create a multimedia experience.
Because we don’t recommend it for most flipbooks, we haven’t built it into our interface to keep things simple for most of our users. If you are 100% sure you want audio in your flipbook, you can edit your flipbook yourself in order to have it play MP3 audio.
Adding the MP3 audio file to your flipbook
Please open index.html in a simple texteditor like notepad. Then add the following line to it at the bottom, before the closing </body>
tag:
<audio controls autoplay loop><source src="audio.mp3" type="audio/mpeg"></audio>
Then place audio.mp3 (which is the audio file you want to play in the background) in the same folder as index.html
The tag currently has “loop” in it, which makes the audio start again after it’s ended. If you only want to play it once, you can use this tag instead:
<audio controls autoplay><source src="audio.mp3" type="audio/mpeg"></audio>
- 1
- 3
- 0
- ,
- 0
- 0
- 0
- +