Prevent user from selecting a layer while audio is playing
I have a scene with one slide and 3 layers in this slide. Each layer (say layer 1, 2 and 3) will be called by users clicking on 1 of 3 hotspot (say hotspot 1, 2 and 3) on the base layer (layer 0). Each layer have a own audio file (audio 0, 1, 2 and 3).
When the user clicks on the hotspot 1, before the audio 0 on layer 0 is fully played, he will hear both audios, the one from the base layer and the one from the layer connected to the hotspot he clicked, audio 1.
If I want to prevent that, I'll have to activate the hotspots when the speaker is done on the base layer. No problem.
But: Layer 1 has his own audio file (audio 1). When the user clicks on hotspot 2 before audio 1 is done, that will start layer 2 and audio 2, so audio 1 and audio 2 will play at the same time. As the hotspots are on the base layer, I cannot figure out how I can delay/deactivate them for a while on the layers.
Important: Users should decide which hotspot (1, 2 or 3) they want to click first. So no way on getting hotspot 2 on layer 1, hotspot 3 on layer 3, etc.
Any solution?
4 Replies
Tricky to describe. Please see published sample here (make sure your volume isn't too loud before opening, link expires in a few days) and the .story file is attached so you can see how it's done.
Please let me know if you have any questions.
Thank you Matthew. Better than any explanation!
I'll try to transpose.
Edited: it works like a charme! Thanks
That's right. I never use hotspots as they aren't accessible to screen readers. If I want hotspot like functionality, I use a shape and make it transparent.
Glad you got it working!
Hi Erik! Glad that Matthew was able to provide the support you needed here :)