cocos-pnp
cocos-pnp copied to clipboard
I have a problem with ironsource's sound on/off button
function audioVolumeChangeCallback(volume){ let isAudioEnabled = !!volume; if (isAudioEnabled){ //START or turn on the sound(add your own code here) } else { //PAUSE the turn off the sound(add your own code here) } }
Ironsource provides a function like the above to turn on/off the sound of ads, but because after using the adapter, all the command lines are encrypted, so I can't find the exact address of my sound function to mute.
[...]\packages\playable-adapter-core\src\channels\iron-source
Go to the following link and edit it to your liking