Skip to main content
Participating Frequently
November 24, 2020
Answered

Slide Audio Not Playing on Slide Load

  • November 24, 2020
  • 1 reply
  • 695 views

The audio on multiple slides is not playing upon slide load. On each slide, I added the audio to a smart shape within another smart shape's Normal state. (Please see attached image.) I duplicated the Normal state and trigger it with a button, so the learner can repeat the initial slide text and audio on demand. This is the setup on most of the slides in the project.

 

It all worked fine and the audio was consistently playing on most slides, before I added some javascript to every slide (on enter) to hide the progress bar handle. Not every slide's audio is affected. But several are. What would cause the slide audio in a shape's Normal state to NOT play upon slide load?

 

I'm using Captivate 2019 11.5.1.499 on Windows 10 (home edition). I'd appreciate any help anyone could give me. Thank you!

This topic has been closed for replies.
Correct answer Lilybiri

Here's one more screenshot of the advanced action that repeats the audio from the Normal/text_again states of the shape. This is the "Else" of the conditional tab (tab 2).


Hope you will not insult me because I am 'condescending', but want to offer you as much information as possible. Some training would be a good idea... You make your developer's life very difficult by ignoring a lot of features. The solution I propose at the end of this comment is rather simple compared with what you are now trying to do.

 

You add audio to a state, same way you add audio to an object, by using the Options tab:

In this screenshot you see the second state of a multistate shape, in the Options tab you see the audio clip which I added. 

It is the same as object audio: when the object disappears audio stops. This means when you go to another state without audio, the audio stops. If you go to another state with another audio clip, the fist audio will stop and the audio clip of the new state will play. I have demonstrated this workflow quite often. 

There is no reason whatsoever to make the slide as long as the audio. Just make sure you have an interactive object like a button, which is pausing the slide. Once an audio clip starts playing in this situation (object audio) it will not be paused by the pausing point at all. Only slide audio CAN be paused by such a pausing point. Please reduce the duration of that slide to the default 3secs, and have a Next button to pause the slide.

Have a look at this blog:

https://elearning.adobe.com/2018/06/pausing-timeline-audio-clips/

Since I am posting links, this one would be useful, so that you can learn how to show Preview button for an advanced action, which will show all the decisions at once (easier to read):

http://blog.lilybiri.com/advanced-actions-dialog-box-in-captivate-2017

 

If this is the correct situation you want (and do not need Closed Captioning):

  1. On entering the slide text is shown and an audio clip is playing.
  2. When the user clicks the Replay button (which pauses at 1.5, not later) the audio has to Replay, but text remains the same.

In that case this would be the easiest setup:

  • Use the On Enter slide event with the command 'Play Audio' and point to the audio clip. No worries, pausing at 1.5Secs with the Replay button will not pause that audio.
  • Use the Success event of the Replay button to trigger the same command 'Play Audio' with the same audio clip. In this case you need to uncheck the option 'Continue Playing the project' which is checked by default. The playhead needs to remain paused.

 

Typical for the Play Audio command (you'll read that in the blog I offered you a link) is that you will never have two clips playing at the same time. When the user clicks the Replay button before the audio clip started On Enter is finished, that first clip will be stopped automatically to give priority to the 'new' clip.

1 reply

Lilybiri
Legend
November 24, 2020

Please do NOT attach screenshots but insert them.  An attached image needs to be downloaded, checked for security, opened in the attached application (which is to me Photoshop, takes seconds to open) and after screening (too much here on one screenshot, Timeline is very blurry) needs to be deleted. The whole process takes too much time, whereas an inserted screenshot can be viewed immediately along with the question.

This look way to complicated? Why do you use Object audio on an invisible shape instead of attaching audio to the Normal state? I don't understand...

You talk about JS, but didn't insert the script...

On the blurry screenshot I see a very long duration for the slide, why? There are only two reasons to have such a long duration:

  1. Because you have staggered objects, coming in and disappearing at different times; seems not to be the case.
  2. Because you have a long slide audio, but cannot see any audio timeline. 

You talk about triggering the audio, which is probably done with a Change State command. But where is the interactive object (and its pausing point) on the Timeline?

For HTML5 output all audio needs to be loaded On Enter for each slide. For that reason, slide audio is recommended to start a little bit after the first frame (leave a gap). How big are the audio files on one slide?

I am sure there is an easier and more 'foolproof' solution

 

Just FYI: the most recent version on Windows is 11.5.5.553, please update.

 

Participating Frequently
November 24, 2020

Got it. Thank you.