Background audio

GuillaumeC Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 5 ☆ Roadie ☆
I would like to add an audio file that plays accross all pages of a title.
I can't find the correct setting in the Audio / Properties tab.
Can you please indicate the procedure to do so ?
Thanks !


  • nmaharaj
    nmaharaj Moderator Posts: 19 eLearning ROCKSTAR Stage Manager
    Hello GuillaumeC,

    Add the background audio as instructed by Adam (above) then add an Action on the title level
    ba = getDisplayDocument().getElementsByTagName("audio")[0];

    Note: this will play the background audio seamlessly page after page in a loop, my suggestion is to have also have a seamless audio loop so you can't hear the start or end of the audio, lastly this will only work on publish (HTML or SCORM)

  • andrew-robertson
    andrew-robertson Community Member Posts: 321 ♦ Idol ♦
    I feel bad resurrecting this older post, but I am looking to do something similar for a very basic software simulation built in Lectora v21 and it is coming along very well.

    The mp3 file should only start to play once the user clicks a button and I would like it to continue playing in the background IF the user leaves the page. I tried making this work with a basic audio file and the directions outlined above, but when I jumped to another page the mp3 stops entirely and when I return to the page I have to click the button to make the audio play again (starts over).
    Andrew R.
    Developing content since 2010 using a mixed bag of tools.