Skip to main content
Phoenix_Leo
Known Participant
January 2, 2023
Answered

Play different audio on slide revisit

  • January 2, 2023
  • 1 reply
  • 3199 views

In captivate project,

1) There is a scenario when on the 1st visit to slide 01, the slide 01 audio should play i.e the slide audio should play.

2) While on the second revisit to slide 01, different audio should play instead of the slide audio.

How to write a advanced action for this?

 

    This topic has been closed for replies.
    Correct answer Lilybiri

    Mam, I have tested the project & works fine.


    Here is the link to a blog post with a step-by-step workflow:

    https://blog.lilybiri.com/menu-slide-forced-view-and-different-audio-on-revisit

    I will probably post it in the eLearning community as well, but moderation waiting time there can be very long.

    1 reply

    Lilybiri
    Legend
    January 2, 2023

    You can have only one audio as slide audio. If you don't need CC for the second audio, this may be a possible scenario:

    • You need a tracking variable for each slide. It can start with a value of 0. Either with the On Enter event, or with the event linked to a Next button you can increment that variable, or just toggle it to 1 (Boolean variable).
    • You have to test the value of that variable with the On Enter event, if it is equal to 1 or greater than 1, you have to move the playhead to the end of the first audio clip. Use the Play Audio command to play the second audio. 

    To write out the full advanced action I need to see the Timeline of that slide, and an answer to my first question about CC. Do you have a Next button on that slide or not?

    Phoenix_Leo
    Known Participant
    January 2, 2023

    No mam, this slide doesnot have next button and only the slide audio will have cc and the second audio will not have cc.

    Timeline Screenshot:

    Mam cud you suggest how to write the advanced action?

    Phoenix_Leo
    Known Participant
    January 3, 2023

    Two possibilities:

    • Will the learner be able to click the same button twice? If the answer is yes, you need a variable for each of the buttons. You can use Boolean variables in this case but they will need to be toggled to 1 using another event than the On Enter slide action which you are now using.
    • If the learner is unable to click the same button more than once, because they will be disabled when having been clicked, you can use the present Advanced action triggered by the On Enter event of the home slide, provided that you correct the mistake where you used the wrong system variable instead of cpInfoCurrentFrame (which would be populated by the first frame of the Home slide).

    Yes, the learner can click the button multiple times only after the chapters are visited. So how to write an advanced action for this?