Skip to main content
Known Participant
February 13, 2019
Answered

Button to appear after audio is done playing

  • February 13, 2019
  • 1 reply
  • 2482 views

Hey everyone,

I have an interaction that I need the button to appear only after the whole audio has been played. I tried looking for an answer and I can't find anything. Any suggestions are greatly appreciated!

    This topic has been closed for replies.
    Correct answer dan561

    First, hide the next button on enter.

    You'll need a conditional advanced action (or shared action) on each of the audio buttons and a variable for each of them.

    Variables (all set to zero):

    v_btn1Played

    v_btn2Played

    v_btn3Played

    The action will:

    1. set the variable for the clicked button to 1

    2. To ensure the learner listens to the whole audio, also DISABLE the buttons

    3. DELAY the number of seconds that the button's audio plays

    4. ENABLE all the buttons

    5. Check the other buttons to see if they've been clicked:

    IF v_btn1Played is equal to 1 AND

    v_btn2Played is equal to 1 AND

    v_btn3Played is equal to 1

    THEN show the next button

    1 reply

    Lilybiri
    Legend
    February 13, 2019

    Which type of audio: slide audio, object audio or audio started with Play audio? The answer will be different based on the type. Please post a screenshot of the timeline as well.

    If you allow revisiting the slide a second time, does this have to be the same sitatuio?


    Have a look at:

    Play Audio once on First Visit - Captivate blog

    BTW have answered same question manyt times, maybe use another 'search' tool ?

    melofabiAuthor
    Known Participant
    February 13, 2019

    I have audio on the slide, but then I have three buttons that have audio as well. Those are the ones that Need to played throughout before the Next button appears.If revisiting, the buttons should play the audio and nothing else. Please let me know if this doesn't make sense! I will read your article, too.

    Lilybiri
    Legend
    February 13, 2019

    Audio is not attached to the buttons as object audio. Do you use the Play Audio command? You have pausing points at two different times. What are the actions attached to all the buttons? When is the playhead released to see the two button that appear later?

    Are you aware of the fact that with the present setup the slide audio can play simulataneously with the audio clip triggered by one of the buttons? If Play Audio is used, and the user clicks quickly a second button, the first audio clip will be stopped.

    Can you please explain what you want to happen really, because that timeline shows a lot of problems, that have to be solved before thinking about the Next button to appear later.