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

Play different audio on slide revisit

  • January 2, 2023
  • 1 reply
  • 3156 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?

    Lilybiri
    Legend
    January 2, 2023

    You have a lot going on there on the timeline. Do you need to keep the 'staggered' objects and the effects on slide revisit? Or is it OK to have the situation as it is on second 54? There is one last object appearing after 54. 

    How long is the second audio? You want the learner to hear that second audio completely I suppose?

    The idea would be to jump to the frame at 54seconds and play the secont audio and have the progress to the next slide only when the second audio has finished, which means a temporary pause.