For an optimal user experience, there are certain scenarios where you might want to mute the ads shown in your application. This is typically the case when your app allows users to mute sound effects or music independently from the device's volume controls.
Changing Audio
The FairBid SDK offers a simple way to achieve this. Use the following API to change the audio settings:
FairBid.Settings.setMuted(true)
Java
FairBid.Settings.setMuted(true);
If you wish to start the SDK with muted ads, make sure you call this API before starting the SDK:
KotlinFairBid.Settings.setMuted(true)
FairBid.start(appId, activity)
Java
FairBid.Settings.setMuted(true);
FairBid.start(appId, activity);
//getter
let isMuted = FairBid.settings().isMuted
//setter
FairBid.settings().isMuted = true
Objective-C
//getter
BOOL isMuted = FairBid.settings.isMuted;
//setter
FairBid.settings.muted = true;/code
using Fyber;
Settings.SetMuted(true);/code
Supported Networks
Currently, the following networks support this configuration
- AdMob
- Applovin
- DT Exchange (Interstitial only)
- inMobi
- Liftoff Monetize
- Mintegral
- Verve
- AdMob
- Applovin
- Chartboost
- DT Exchange (Interstitial only)
- Google Ad Manager
- inMobi
- Liftoff Monetize
- Mintegral
For Android
- AdMob
- Applovin
- DT Exchange (Interstitial only)
- inMobi
- Liftoff Monetize
- Mintegral
- Verve
For iOS
- AdMob
- Applovin
- Chartboost
- DT Exchange (Interstitials only)
- inMobi
- Liftoff Monetize
- Mintegral
- Verve
As a result, this setting is not respected when the ad being shown belongs to networks not present in the list above. This also includes programmatic ads being rendered by DT FairBid itself.
Finally, an important but subtle detail is that AdMob and DT Exchange only respect this setting if it is set before an ad was requested. If an ad is already loaded in the device by the time a user mutes the sound in the application (and DT FairBid’s mute API is called), the ad is still shown with sound.