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

Play different audio on slide revisit

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

    Sorry to repeat again because I have told you that multiple times:  Do NOT use 'Pause' for the On Exit event. That event is not to be trusted and there are better ways to have a slide paused on exit without causing that issue.

    You didn't give me all details on the question: you were talking about a first and next visits, but you have now applied that workflow to a completely different situation with a slide with 4 buttons. You cannot just transfer the workflow I designed to such a slide. Reason: the learner may click the same button multiple times, so the incrementing workflow is not to be trusted. You'd better have a variable for each of the buttons and a condition which checks the 4 variables. 

    However the biggest mistake is about your used system variable in the Expression command, this is what I wrote:

    cpCmndGotoFrameAndResume = cpInfoCurrentFrame + v_skip

    You have used another system variable.  Reread the post about micro-navigation:

    https://blog.lilybiri.com/micro-navigation-introduction

     

    Please, next time give me a full detailed question and try to remember the recommendations I already have given you.

     


    Sorry for the inconvenience, thought of explaining this scenario in short, but it caused the problem.

     

    Mam the pause on exit was mistakenly applied. 

     

    You didn't give me all details on the question: (FYI)

    1) The scenario of my project is there are 5 buttons on the home page. After clicking the button01 it will go to the 1st chapter and when I click the next button on the 1st chapter slide it will come back to the homepage where the slide audio will be disabled, same is the process for the buttons 2,3,4,5.

    2) The slide audio will be played only on the 1st visit to the slide.

    3) After clicking the 5th chapter button on the homepage it will complete the 5th chapter slide and when I come back to the homepage the second audio should play instead of the slide audio.

    4) In Short: The second audio should be played only when I complete chapter 5 and when I come back to the home page.