Title Manager Button with a different action on each page

Hi,


I need to add an audio on toggle to every single page in the course, but each page has a different narration sound file. Is it possible to place the Audio Toggle Button at the Title Manager level and configure it to play what every sound is on the current screen?


Yours Truly,

Jaz

Discussion (4)

Cool approach, Tim! Thanks!

This is something I wanted from Lectora for a long time now.. You can use a script to do that: find the sound element on the page and issue standard Lectora .play() command to it. It gets trickier if you have multiple sounds per page but still doable.

You can put an audio object on title level. Your "toggle play / pause" button can be on title level as well and target that object. On each page you can use a "Change content" action to load a different audio file into that audio object. Just make sure to import all audio files into your title so they are in the media folder and Lectora knows they exist. That should work as long as you don't mean to use events.


Tim

I'm doing the same thing. I need additional actions when the audio is done playing on each page. When it's done, I need to mark the page complete and show the NEXT button. In addition, some pages need to have audio events. Can I do this from a title-level audio object and global pause/play buttons?


What if some pages, such as a quiz question, doesn't have any audio associated with it? How do I set the global audio object to not play anything on that page?

Discussions have been disabled for this post