// AudioCapabilitiesReceiver.Listener methods
 @Override
 public void onAudioCapabilitiesChanged(AudioCapabilities audioCapabilities) {
   boolean audioCapabilitiesChanged = !audioCapabilities.equals(this.audioCapabilities);
   if (player == null || audioCapabilitiesChanged) {
     this.audioCapabilities = audioCapabilities;
   } else if (player != null) {
     player.setBackgrounded(false);
   }
 }
 @Override
 public void onAudioCapabilitiesChanged(AudioCapabilities audioCapabilities) {
   if (!audioCapabilities.equals(this.audioCapabilities)) {
     this.audioCapabilities = audioCapabilities;
   }
 }