Forum Discussion

CraigJohnson-9d's avatar
CraigJohnson-9d
Community Member
7 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?

3 Replies

  • 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. 

    • SimeonPillich's avatar
      SimeonPillich
      Community Member

      I have a similar question. I have a slide with 3 clickable layers. Each layer contains audio. Audio on base layer must complete before layers are available. Only one layer at a time is available and audio must complete before next layer available. (Client request - certainly not my preference.) 

      Once learner has listened to base layer and all 3 slide layer audios, REPLAY will only play audios from selected layers.  How can Replay be set to replay audio on base layer after all buttons selected?

      • JoseTansengco's avatar
        JoseTansengco
        Staff

        Hello SimeonPillich,

        Thanks for reaching out!

        I wanted first to clarify the expected behavior for the replay (rewind) button. The behavior of the resume button will differ depending on your slide's revisit setting. For example, the resume saved state will always prevent the slide from rewinding. This behavior is described in this article: 

        To consistently allow the replay button to rewind the slide, use the "Resume initial state" option. This is the recommended setting to replay the audio in your base layer. As for controlling the appearances of your layers based on the completion of audio files, this can be done by stringing together triggers. Please share a copy of your project file here or in private by opening a support case so we can check what you've already built and modify the triggers as necessary. We'll delete it when we're done!