Audio: Do not automatically play on revisit but allow user to replay it with button

May 10, 2016

I have a series of slides that I only want the audio to play on the first visit.  If the slide is revisited I do not want it to automatically replay.  However, I would like to display a button that allows the to replay should the choose to.  I would like the button to only appear on a revisit as well.  Attached is an image of my slide (the 'Show Me' button shown plays a video, nothing to do with the audio). 

I am a pretty new user and am not well versed in Variables etc...so I am not understanding exactly how to do this by other postings on setting variables for this.  

4 Replies
Walt Hamilton

Don't try to read and understand this all at once, if you aren't strong with variables. Complete each step before reading the next one, and it won't be so confusing.

Create a T/F variable. Name it (for example), AudioPlayed1and set its initial value to False. Create a trigger attached to the slide to play the audio when the timeline begins on condition AudioPlayed1 is equal to true (This should be false. Thanks, Wendy). It will play when the slide first plays.

Attach a trigger to the media that adjusts the variable AudioPlayed1 to true when media completes, and choose the audio as the media. Once the media plays, the variable (think of variables as post-it notes to remind the program of what it has done. When AudioPlayed1 is true, it means that the audio on slide 1 has played already.) will tell it that the audio has played once, and it won't play again.

Create a button and set its initial state to hidden. Attach a trigger to it to play the audio when the user clicks it. Attach a trigger to the slide to change the state of the button to normal when the timeline starts on condition that AudioPlayed1 is true.

You will need to create a button, all the triggers, and A SEPARATE DISTINCT variable for each slide. It is easy (and good practice) to give them names like AudioPlayed1, AudioPlayed2, etc.

Wendy Farmer

Hi Walt

on first play since the variable AudioPlayed1 won't trigger to true till the media is complete, shouldn't the first trigger below be play first time when variable is false

Create a T/F variable. Name it (for example), AudioPlayed1and set its initial value to False. Create a trigger attached to the slide to play the audio when the timeline begins on condition AudioPlayed1 is equal to true. It will play when the slide first plays.

Attach a trigger to the media that adjusts the variable AudioPlayed1 to true when media completes, and choose the audio as the media.

This discussion is closed. You can start a new discussion or contact Articulate Support.