Forum Discussion
How to prevent audio from playing when returning to slide
Hi Walter!
Good news! There is a way have the audio play on a slide only on the first visit! I would use a variable to play the audio only when the learner first visits the slide. Here's are the steps to set that up:
- Create a true/false variable named "audioplay".
- Set the default value to false.
- Add this trigger to the drag and drop slide base layer: "Play media [audio] when the timeline starts if the variable audioplay is equal to false."
- Add another trigger to the drag and drop slide base layer: "Adjust variable audioplay to true when the media completes [audio]."
One more tip: if you have multiple drag and drop slides with audio, you'll need a unique variable for each slide.
To stop the audio when the user clicks away from the main page you could add a 'Stop media' trigger. Add this trigger to the drag and drop slide base layer: "Stop media [audio] when user clicks on the next button"
Since you mentioned you are new to Storyline, here are some articles to get you going in the right direction!
Thanks for reaching out!
Hello, your tips are useful, but what to do when you have multiple media on one slide and i had them set on timeline one after another, when i use new triggers i am not able to move them at all and this approach does not work. Looking forward to your reply
- LucianaPiazza8 months agoStaff
Hi RusudanSimongul,
Thanks for reaching out!
If I'm understanding correctly you have multiple elements included on your slide and once you insert a new trigger you're unable to prevent the audio from playing. Is that correct?
- Could you share what triggers you are implementing into this slide? It would be helpful to know what kind of media you are including as well to better understand.
It would be great to take a closer look at your setup to provide suggestions. Feel free to share your .story file in this thread or privately in a support case.Looking forward to hearing from you!
Related Content
- 11 months ago