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!
Maybe you should have a look at this movie:
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
Lilybiri, is there still no way within Captivate, without using JS, to pause a clip that is started with the command Play Audio?
Pause, no. You can only stop it with 'Stop Triggered Audio', but that is not the same as pausing.
Thanks for your answer. This is a little frustrating. I want to be able to use the pause/play button in the playbar controls to pause/play audio attached to a button.
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.
I'll see if I can find a script I wrote some time ago that can do that.
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.
@TLCMediaDesign, thanks for that info. I can manage all audio except the Play Audio clips without JS.