![](/s/cache/9a/67/9a67ff1eb71cb976c4da9d7bb078bce3.png)
ToggleAudio
ToggleAudio doesn't work, unless I use it incorrectly:
I have a little microphone button in every page, which when clicked hides itself and shows a mic with cross ("no audio"). This one does the same. Both buttons initiate "ToggleAudio" behavior. But that doesn't do the trick.
Ranco
Answer
![](/s/cache/9a/67/9a67ff1eb71cb976c4da9d7bb078bce3.png)
It was on, now it's off (no refresh on load), no change. Doesn't work.
And anyway, why should that affect this behavior?
RAnco
![](https://cdn.userecho.com/characters/65.png?1)
Well for example if you select the sound to be Off and the page refresh itself every time the sound will be on because you refreshed the page and the audio will go to default which mean On
![](/s/cache/78/2c/782c50cf08f179a9e6eba6e3da674ca7.png)
Make sure the Page doesn't have checked Refresh on Load
![](https://cdn.userecho.com/characters/65.png?1)
I've attached a small app with how the ToggleAudio behavior works. On first page I have two elements both with toggle audio behavior, and on the second page I have a text element with a PlayAudio on Page Load.
![](https://cdn.userecho.com/characters/65.png?1)
I've attached a small app with how the ToggleAudio behavior works. On first page I have two elements both with toggle audio behavior, and on the second page I have a text element with a PlayAudio on Page Load.
![](/s/cache/9a/67/9a67ff1eb71cb976c4da9d7bb078bce3.png)
Well, thanks, but I beg to differ. Maybe my interpretation for this behavior was different - I would expect that if I toggle audio while audio is playing, it will stop (e.g., pause all audio or set volume to 0), and vice versa - if I toggle again, it will continue either from where it stopped (if paused) or restore volume to prev / max.
Otherwise, there's no way to allow the user to quite the audio per page, which is what I'm trying to do.
![](/s/cache/9a/67/9a67ff1eb71cb976c4da9d7bb078bce3.png)
For that I need two things:
1. That pause with no target will simply pause all
2. That playAudio will do the same, or pause will toggle
Why? Because I want these two buttons (audio on/off) to be global, instead of duplicate them with different parameters for each page
Thanks
![](/s/cache/a3/4b/a34b7db3a5605d6f9f270be5298056c4.png)
This is an interesting idea. We'll look into adjusting the audio behaviors (like PlayAudio and PauseAudio) to add the option of targeting all of the audio on the page.
(ToggleAudio works a little differently -- it's meant as a way for the user to select from the beginning whether or not the audio that is designated as narration should play on all of the pages of the app. In a lot of children's book apps, there's a set of buttons that let the user choose "read to me" or "read by myself," and if the narration is turned off, there still could be sound effects and music unless the user turns off the audio on the device.)
![](https://cdn.userecho.com/characters/65.png?1)
I've attached a small app with how the ToggleAudio behavior works. On first page I have two elements both with toggle audio behavior, and on the second page I have a text element with a PlayAudio on Page Load.
![](/s/cache/78/2c/782c50cf08f179a9e6eba6e3da674ca7.png)
I've attached a small app with how the ToggleAudio behavior works. On first page I have two elements both with toggle audio behavior, and on the second page I have a text element with a PlayAudio on Page Load.
![](/s/cache/9a/67/9a67ff1eb71cb976c4da9d7bb078bce3.png)
Any change in that direction? Can this be added to future version? it will make audio control much easier throughout the book
Thanks
Ranco
Customer support service by UserEcho
I've attached a small app with how the ToggleAudio behavior works. On first page I have two elements both with toggle audio behavior, and on the second page I have a text element with a PlayAudio on Page Load.
204 - ToggleAudio.zip