Skip to main content
Known Participant
January 14, 2016
Answered

play audio on first visit to slide only

  • January 14, 2016
  • 1 reply
  • 3681 views

I have a slide that branches off to three different branches that all guide the learner back to the same slide again after the branch is complete. I would like the audio to play only the first time users see the slide, not when they revisit it.

This topic has been closed for replies.
Correct answer Lilybiri

what do you mean by "frame" and "frame number"? How do I store a frame number in v_frame?


Jessica, I answered your other thread. Please, can you have a look at the article about Timeline?

Each video and film plays with a certain frame rate: number of frames per second. For Captivate the default frame rate is 30FPS. That means that a slide with a default duration of 3secs has 90 frames. What I explained is that you can navigate to a certain frame on a slide, using the system variable cpCmndGotoFrame or cpCmndGotoFrameAnd Resume. I call that work flow 'micro navigation' and wrote an article about it (well-visited, seems like that word has been adapted by many CP-users):

Micro-Navigation in Adobe Captivate - Captivate blog

When the user clicks a button on the slide it will be in the active part, before the pausing point. Using this command:

    Assign v_frame with cpInfoCurrentFrame

that variable will store the frame number where the button was clicked.

When coming back to the slide the conditional advanced action will check the value of v_frame:

    IF v_frame is greater than 0

        Expression cpCmndGotoFrameAndResume = v_frame - 2

    ELSE

        Continue

I use the Expression command instead of Assign because it is possible that the user has clicked just on the pausing point, and I want to be sure that he is returned to a location before that pausing point, in the active part of the button. For that reason I subtract 2 (frames) from the value in v_frame.

1 reply

Lilybiri
Legend
January 14, 2016

OK, that is even different from the thread where you posted first your question.

As usual I have first some questions:

  • Do you need to add CC (Closed Captioning)?
  • If you need CC you are limited to slide audio, in that case, can I see a screenshot of the timeline?
  • If you don't need CC will give you an easy solution with either the Play Audio command or an audio object
Known Participant
January 14, 2016

yes, we need to have closed captioning

Known Participant
January 14, 2016

I have multiple advanced actions set up already when users click e_b_whatstested, e_b_managetime or e_b_approachquestions