Forum Discussion

CraigJohnson-9d's avatar
CraigJohnson-9d
Community Member
2 months ago

Layer Replay Audio Not Working with Variables

I've created multiple slides with layers and variables to control the next button, playing TTS audio, changing the close button's state for the layer, and changing the layer's button on the main slide.

Layers include individual "layer viewed" (number) and "all layers viewed" (T/F) for the slide. 

Each layer is setup to play the TTS if the "all viewed" is False or if the individual "layer viewed" is grater than zero. In other words, if it's the first time visiting, or if you're revisiting the layer, play the TTS audio. 

The "layer viewed" variable is set to 1 when the timeline starts on the layer.

The layer's close button is setup to appear when the TTS audio completes on the layer, which also triggers the layer's button on the main slide to move to a custom "complete" state.

Once all buttons on the main slide are "complete" the "all layers viewed" variable is set to True, and allows the Next button to be selectable.

Because we are showing the play/pause button and seek bar in the player, the replay button appears. However, any of the layers with this setup will replay (seek bar starts over) but the audio doesn't paly and the close button disappears. The only way to get get off the layer is to go back one slide, then come back to the same slide which resets the button states from complete to normal. 

Is there a way to get the replay button to replay the TTS audio with this type of variable setup? I need to prevent learners from closing the layer before the audio completes, I need to set the button on the main slide to complete once the audio has completed on the layer, and I need the close button once the audio completes on the layer. All of this works perfectly with the current setup, however the replay button in the current issue that I can't seem to fix. 

Example of the triggers on the layers and base layer attached for reference. The "all layers viewed" is the "Expectations_Viewed" variable in the screenshots.

Any suggestions?

  • Hi CraigJohnson-9d,

    Thanks for reaching out!

    There's quite a lot to process here. Since your slides use a lot of triggers, it would be super helpful if you could also share a copy of your project file here or privately by opening a case with our support team so we can test how everything works. The result you are trying to get can be achieved using triggers and conditions, and having the community take a look at your project file will allow us to share suggestions and recommendations and how it can be accomplished.