Skip to main content
Known Participant
January 23, 2012
Answered

How can I control whether or not an audio files plays when a slide starts?

  • January 23, 2012
  • 1 reply
  • 476 views

I am putting together a course and have a welcome audio that plays automatically when the user begins the course. Since that slide has a list of the modules that will be in the course, I would also like to use it as one navigation option - click the "Menu" link on any slide and return to this page.

The problem: Every time the page is hit the audio plays.

The question: How can I set the audio so it only plays the first time the page is entered but not again?

I have created a variable called "PlayWelcomeAudio" and set it to "Y" initially, then have an Advanced Action script that changes the variable to "N" when it is clicked (progress through the course is linear so there is only one option available to the user at this point. Clicking that link opens the next page and sets "PlayWelcomeAudio" to "N".

I can see that the variable has been set correctly (when I start it is "Y" and when I come back it is "N") but I'm not seeing anyplace where I can set the audio file so it doesn't play.

I tried setting cpCmndMute to "1" but that didn't work because it is apparently a global setting and I didn't get any audio playing anywhere after that.

I'm not looking to pause the timeline or anything like that. I just want the audio to play the first time but not the second and subsequent times that page is hit.

Thoughts? Suggestions?

Thanks.

Michael

This topic has been closed for replies.
Correct answer RodWard

Attach your welcome audio to an object that is not seen (e.g. a highlight box set to 0%) and use your Advanced Actions and variables to HIDE this object ON SLIDE ENTER if the user returns to the same Menu slide at a later point in the course module.

This should mean that the first time the user gets to that slide, the audio will play.  But all subsequent times they return to that slide, the object will be immediately hidden on entering the slide, which will mean that the audion does not play and all the user sees are the menu options.

Your alternate strategy would be to have two slides that look almost the same.  The first one has the audio, and the second one doesn't.  Your TOC item for Menu, and any other links in the project that point to the Menu, would go to the second slide without audio.  The user will be none the wiser as long as you work out the navigation.

1 reply

RodWard
Community Expert
RodWardCommunity ExpertCorrect answer
Community Expert
January 24, 2012

Attach your welcome audio to an object that is not seen (e.g. a highlight box set to 0%) and use your Advanced Actions and variables to HIDE this object ON SLIDE ENTER if the user returns to the same Menu slide at a later point in the course module.

This should mean that the first time the user gets to that slide, the audio will play.  But all subsequent times they return to that slide, the object will be immediately hidden on entering the slide, which will mean that the audion does not play and all the user sees are the menu options.

Your alternate strategy would be to have two slides that look almost the same.  The first one has the audio, and the second one doesn't.  Your TOC item for Menu, and any other links in the project that point to the Menu, would go to the second slide without audio.  The user will be none the wiser as long as you work out the navigation.