Skip to main content
November 29, 2011
Question

Stop to replay audio when I come back on the slide

  • November 29, 2011
  • 1 reply
  • 726 views

Hello !

I'm using Captivate 5. I have created one main slide with audio descrition on background. On the slide I have buttons to go to other video slide. When the video finished, it come back to the main slide and replay audio again.

How I can find solution to play background audio only the first time ?

Thanks for your suggestions (sorry for my english ...).

Thomas

This topic has been closed for replies.

1 reply

Lilybiri
Legend
November 29, 2011

Hi Thomas,

I suppose you do not want to mute all audio when reentering, because it would also be muted for all subsequent slides.

The way to go is to attach the audio to an object. That can be a rectangle with no stroke and no fill (thus invisible to the user). I would create a small advanced action to be triggered on entering the slide to hide the audio after the first time. Since you have to attach this action to an On Enter event, you'll need a user variable, that you can increment on entering the slide. Perhaps a bit complicated because you'll need a conditional action.

Another way would be to use the buttons not only for navigation, but also for hiding the object (which will keep it hidden and so audio will not play again). I suppose you have for the moment a simple action of navigation. If you replace that by a standard advanced action with three statements (for every button) it will be solved as well:

  • hide Object (where Object is the label of the object to which you attached the audio)
  • Jump to Slide X
  • Continue (perhaps unnecessary, but will make sure the playhead doesn't stop)

Lilybiri

PS I used similar work flows with audio attached to objects in this blog post: Playtime with audio and widgets

November 29, 2011

Thank you Lilybiri !

I have allready read your blog ! Nice job ...

Do you know the variable that I should use to go back at specific time ?

For example, I have elements witch appear along my dialogue during 18 seconds, after that the learner have 3 choices buttons (to 3 other slides). On the 3 other slides, I have 1 return button. I want when they go back, they do not see again the 18 start seconds.

Any proposals ?

Thank you again for your helpful time ...

Thomas

Lilybiri
Legend
November 29, 2011

Hello,


You'll need 'micro-navigation', blogged about that as well. I should store the first frame of the slide in a user variable v_start, and increment another user variable v_counter that you can use to track if it is the first time the slide is visited. If it is not the first time you have to calculate to which frame you should navigate (call it x) and use the Expression rdcmndGotoFrame = v_start + x

Did you see my post about micro-navigation?

But I really think it would be easier if you put those 18secs on a separate slide

Lilybiri