Background audio

GuillaumeC
Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 5 ☆ Roadie ☆
Comments
-
Hello GuillaumeC,
Add the background audio as instructed by Adam (above) then add an Action on the title level
OnShowRunJS
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)
-N -
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.
Categories
- 35.9K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 324 CenarioVR®
- 191 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products