Skip to main content
Participant
October 16, 2018
Question

Pausing Triggered Object Audio using Captivate Player Controls

  • October 16, 2018
  • 2 replies
  • 1352 views

Hello,

I am wondering if there an elegant way to pause audio that is triggered by Play Audio action attached to a button?

On my timeline I have Introductory audio that explains why learners should click one of the 2 buttons on the stage.

Button 1 plays Audio 1 and changes the state of a graphic to state 1

Button 2 plays Audio 2 and changes the state of a graphic to state 2

I am able to pause the introductory audio using the Captivate Player Controls

I would like to pause the audio that is triggered by the play audio action (Audio 1 or 2) attached to the buttons using the Captivate Player Controls.

Is this possible?

Regards Richard Rambarran

Moderator: Please do not post credentials in a public forum!

    This topic has been closed for replies.

    2 replies

    TLCMediaDesign
    Inspiring
    October 16, 2018

    The only way to do this would be to use JavaScript.

    You would need to find the name of the pause and play buttons, add event listeners to them both. Then find the audio and pause/play it.

    This would more than likely need to be done in external JavaScript, but may work in a JS window.

    I'll see if I can find a script I wrote some time ago that can do that.

    Lilybiri
    Legend
    October 16, 2018

    David, the title by the OP is confusing because he is NOT talking about Object audio (which can be pased in an advanced action by the Pause command) but about a clip triggered by the Play Audio command. Can that be paused and resumed with Javascript?

    TLCMediaDesign
    Inspiring
    October 16, 2018

    It can. Everything can be accessed and controlled with JavaScript.

    If there is audio on the slide, no matter what is playing it or how it was triggered, there should be an <audio> tag.

    There may be a few audio tags, so you would need to find the correct one, and then it can be paused or played.

    It's kind of the same way as buttons on a Master Slide. They can be accessed by searching through the DOM for the element that matches an accessibility tag since you have no idea what id Captivate will assign the button.

    Lilybiri
    Legend
    October 16, 2018

    Maybe you should have a look at this movie:

    Audio and Pausing Timeline

    Captivate's Timeline

    The way audio clips can be paused depends on the type of audio and the used pausing type. Have bad news for you: there is NO way to pause a clip that is started with the command Play Audio. You can only stop it with Stop Triggered audio

    Participant
    March 25, 2021

    Lilybiri, is there still no way within Captivate, without using JS, to pause a clip that is started with the command Play Audio?

    Lilybiri
    Legend
    March 25, 2021

    Pause, no. You can only stop it with 'Stop Triggered Audio', but that is not the same as pausing.