Skip to main content
Participant
March 8, 2017
Question

Conditional actions to control audio

  • March 8, 2017
  • 2 replies
  • 303 views

I have a main slide with buttons to take users to different training simulations. When they return to this slide to make another choice, I do not want the audio to repeat again. I am working in Windows and using Captivate 9. I have searched everywhere and cannot find any direction for my version of Captivate.

June

    This topic has been closed for replies.

    2 replies

    Joseph Ganci
    Inspiring
    March 9, 2017

    Hi, I put up a video and an example file of how to do this last week.

    https://www.youtube.com/watch?v=wVm0-SIUS8o&t=4s

    http://bit.ly/cpJoeQ-Edition01-Files  

    dunlapjdAuthor
    Participant
    March 9, 2017

    Thanks Joe,

    That is exactly what I was looking for.

    June

    Lilybiri
    Legend
    March 8, 2017

    =How did you insert the audio: as slide audio? If you need CC that is normal. If you don't need CC you could use a conditional action On Enter, and a user variable v_visit. That user variable could be a Boolean, with default value set to 0. On Enter of the slide you can  use this conditional action:

    IF v_visit is equal to 0

         Play Audio ....

         Assign v_visit with 1

        Continue

    ELSE

       Continue

    If you do need slide audio, you'll have to use micronavigation to jump to a frame just after the audioclip. In that case you have to be careful to have the pausing points of the buttons to be later than the frame you are jumping to. If the audio clip has a length of x seconds, and you kept the framerate at 30FPS, the conditional action in this case could be (v_jump is another user variable that will be used to calculate the number of frames to skip after the first visit):

      IF v_visit is equal to 1

          Expression v_jump = x * cpInfoFPS

          Expression cpCmndGotoFrameAndResume = cpInfoCurrentFrame + v_jump

      

      ELSE

         Assign v_visit with 1

         Continue