Skip to main content
Phoenix_Leo
Known Participant
October 27, 2022
Question

How to display next button when audio’s are complete

  • October 27, 2022
  • 1 reply
  • 1263 views

1) In slide 01, there is a slide audio and on the same slide 01 there are also 8 clickable buttons and all the 8 buttons have there individual audio's.
2) While the slide audio is playing, if I click any 1 button out of the 8 buttons the audio from the button 1 will play and should stop the slide01 audio.

3) So in that 8 buttons when I click each button and when all the audio's from the 8 buttons are done listening/completed then next button should appear. After all 8 button audio's are done the next button should appear.

How to write a advanced action for this kind of scenario?

    This topic has been closed for replies.

    1 reply

    Lilybiri
    Legend
    October 27, 2022

    Stop or Pause the slide audio? Could you post a screenshot of the timeline? I need to see the timing of the pausing points of the buttons.  Stopping the slide audio when a button  is clicked is available in the Properties panel of the button.

    How do you trigger the audio? You talk about Object audio, but I suspect that you are using the Play Audio command for the buttons?

    Phoenix_Leo
    Known Participant
    October 27, 2022

    1) Stopping the slide audio when the Buttons are clicked. Yes i saw that stop audio option in the properties panel

    2) I have used the play audio command inside the button so that when some one clicks the button he can hear the audio.

     

    See adavanced action screenshot below:

    1) While the audio on the slide01 is playing and that time when i click any button out of 8 buttons the slide 01 audio stops.

    2) Without completing the button01 audio if i keep on clicking on the others buttons mutiple times whithout the audio being finished the continue button appears.

    1) 

    2) 

    Lilybiri
    Legend
    October 27, 2022

    There is no pausing point on any button? That means that if the learner is not clicking any button, and the end of the slide is reached, that the playhead will move automatically to the next slide. That is a dangerous situation. Even your Next button, which is invisible has no pausing point, that makes no sense. Why did you take out all the pausing points? Put them back, but all at the same time, somewhere after the staggered buttons have all appeared.

    This is a fluid boxes project, sure that the fluid boxes have been set up correctly?

    I suppose 'Selected' is a custom not an InBuilt state? Since you never change back to the Normal state, why not create the InBuilt state 'Visited'? That will appear automatically when the button is clicked and you can get rid of the Change State command.

    As for the actions, with that amount of buttons I would plead for Three instead of Two decisions:

    Decision 'Always'     not conditional

        Increment v_one by 1

         Play Audio1

    Decision 'Counting'     conditional

        IF v_one is equal to 1

            Increment v_counter by 1

    Decision 'ShowNext'    conditional

        IF v_counter is equal to 8

            Delay Next actions by x seconds                     x being average duration of the audio clips

            Show Bt_Next

     

    I added the extra variable v_counter. This action can be a shared action with 3 parameters. I marked the parameters in Bold.