Skip to main content
Participant
February 23, 2011
Question

Can the playbar widget be configured to start an audio file once 'play' is clicked?

  • February 23, 2011
  • 1 reply
  • 406 views

Captivate 5

I'd like to create a slide in which the user can click on a 'play' button to hear some audio.  Preferrably, I'd like the button to toggle between symbols representing 'play' and 'pause' when the audio is playing.

I was hoping that inserting a playbar widget would accomplish this, but unfortunately the audio I've attached to the widget plays automatically when the slide begins.  I'd like the audio only to play when the user clicks the play button on the widget.

I understand that there are work-arounds for this, but aesthetically it's important to me that the button be dynamic (that is, that it should change when the user clicks it).

Thanks.

This topic has been closed for replies.

1 reply

RodWard
Community Expert
Community Expert
February 24, 2011

The general workaround for dynamic buttons like you describe is to use Show/Hide Advanced Actions to make it appear as if the button is changing by toggling the images the user sees.

As for getting the user to hear audio when a button is clicked...this is easy enough to do by attaching the audio to the Success caption of the button.  That way, it will only begin playing when the Success caption appears, not when the button appears.  If you don't want the Success caption to be visible, just turn it into a Transparent caption with no text, or move it off stage (in Cp5).

You'll need to experiment with Advanced Actions to get the toggling of the button images and the play/stop of the sound to work as expected, but it should be doable.

Lilybiri has lots of great stuff on her blog about using Advanced Actions: http://lilybiri.posterous.com/

Participant
February 28, 2011

Thank you for the quick response.

Before my first post, I had already tried the success caption workaround.  Unfortunately, this workaround does not allow the user to listen to the sound more than once.  I'm aware that I could duplicate the button on top of itself a bunch of times and then hide and show a new button each time the user clicks, but that seems like an extremely tedious workaround for a simple functionality request.  I'm just having a hard time believing that I'm the first person who has a need for this functionality.