Forum Discussion
MatthewBarto687
6 years agoCommunity Member
Custom audio control
I was wondering if anyone has an idea/solution. With Storyline 2 we were able to control the volume (without using the built in audio slider) by setting the Audio.setMasterVolume in javascript. I ...
MatthewBarto687
6 years agoCommunity Member
I finally found a solution to accessing the volume. Search the ds-slides.min.js file for parseBlocks,i=DS,r=i._,s=i.utils (this file is minified, so make sure no spaces in the search term. Then look just before for var e= and insert _c=DS.appState; before the var keyword. So for example you will see this (the numbers in parenthesis may vary) var e=f(50),n=f(16).parseBlocks,i=DS,r=i._,s=i.utils and you will change it to _c=DS.appState;var e=f(50),n=f(16).parseBlocks,i=DS,r=i._,s=i.utils
You can then adjust the volume from within Storyline using a javascript trigger and calling _c.setVolume(number from 0 to 1).
Related Content
- 5 months ago
- 5 months ago
- 10 months ago