Source: https://nishanth-fern-test.docs-staging.pageloop.ai/mobile/integrate

# Integrate

Audio ducking is a process in which the level of one audio signal is reduced by the presence of another signal.

Whatfix Mobile supports audio ducking. If you have ExoPlayer, and you want Whatfix Mobile to duck audio on that window, then use the following code snippet.

InfoIf you've already handled audio focus in Exoplayer, ignore this.Create an instance of `com.google.android.exoplayer2.audio.AudioAttributes` that matches your use case. You need to pass `handleAudioFocus` as `true` while setting the `audioAttributes`. For more information on audio focus with Exoplayer, see [Easy Audio Focus with Exoplayer](https://medium.com/google-exoplayer/easy-audio-focus-with-exoplayer-a2dcbbe4640e) or use the following example:

```java
AudioAttributes audioAttributes = new AudioAttributes.Builder()
 .setUsage(C.USAGE_MEDIA)
 .setContentType(C.CONTENT_TYPE_MOVIE)
 .build();
 
 exoPlayerInstance.setAudioAttributes(audioAttributes, 
 /* handleAudioFocus= */ true);
```
