Forum Discussion
MarcoParenti
4 years agoCommunity Member
how to create a sound volume button
Hi,
I want to know how to create a control volume button without using the default player.
Thankyou
MatthewBarto687
4 years agoCommunity Member
If you are comfortable with editing code in the exported files, you can also do the following...
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).