Help with Audio Ducking

Helping Leap to run in Audio apps
Ignore this if you have already handled audio focus in Exoplayer
Leap supports audio ducking but if you have ExoPlayer, and you expect Leap to duck audio on that window then refer to the following snippet. (Ignore this if you have already handled audio focus)
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. Refer to this link or to the example below:
AudioAttributes audioAttributes = new AudioAttributes.Builder()
.setUsage(C.USAGE_MEDIA)
.setContentType(C.CONTENT_TYPE_MOVIE)
.build();
exoPlayerInstance.setAudioAttributes(audioAttributes,
/* handleAudioFocus= */ true);