Forum Discussion
Remove Sound Icon/Volume Control from any slide
Thanks Perry for that code but it didn't work for me. I'm using Storyline 3 and have only one slide with audio. We have a new requirement to include the volume button on the player so I just need that icon for the one slide only. I put your java to hide the volume in a trigger on the first slide of the project [$(".cs-icon.volume-icon").hide();] and then the java to add it back in on the slide with audio [$(".cs-icon.volume-icon").show();] and then again inhibit it on the slide following the one slide with audio.
Maybe this doesn't work in Storyline 3? (Sadly I'm unable to share the file)
- PerryBennett-123 years agoCommunity Member
Hi, this solution unfortunately is for Storyline 360, not Storyline 3.
Perry
- Jürgen_Schoene_3 years agoCommunity Member
for every script where you see the "$" char in the code, you need the library "jQuery"
jQuery is not included in Storyline anymore, since
- January 21, 2020 (Storyline 360)
- June 16, 2020 (Storyline 3)
but jQuery is not needed, you can do it with pure javascript
hide volume button
document.getElementsByClassName("cs-volume")[0].classList.add("hidden");
show volume button
document.getElementsByClassName("cs-volume")[0].classList.remove("hidden");
tested with modern player and classic player - so it should work with Storyline 3
- JeremyStump2 years agoCommunity Member
Do you know what the value would be to hide the closed caption button?
Related Content
- 10 months ago