react to onSilence() and stop ringtone

This commit is contained in:
Daniel Gultsch 2024-01-21 11:08:43 +01:00
parent bfe2aff7a1
commit a78747eaa2
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2
3 changed files with 17 additions and 0 deletions

View file

@ -300,6 +300,11 @@ public class CallIntegration extends Connection {
return this.appRTCAudioManager; return this.appRTCAudioManager;
} }
@Override
public void onSilence() {
this.callback.onCallIntegrationSilence();
}
@Override @Override
public void onStateChanged(final int state) { public void onStateChanged(final int state) {
Log.d(Config.LOGTAG, "onStateChanged(" + state + ")"); Log.d(Config.LOGTAG, "onStateChanged(" + state + ")");
@ -473,5 +478,7 @@ public class CallIntegration extends Connection {
void onCallIntegrationReject(); void onCallIntegrationReject();
void onCallIntegrationAnswer(); void onCallIntegrationAnswer();
void onCallIntegrationSilence();
} }
} }

View file

@ -1156,5 +1156,10 @@ public class JingleConnectionManager extends AbstractConnectionManager {
@Override @Override
public void onCallIntegrationAnswer() {} public void onCallIntegrationAnswer() {}
@Override
public void onCallIntegrationSilence() {
}
} }
} }

View file

@ -2718,6 +2718,11 @@ public class JingleRtpConnection extends AbstractJingleConnection
xmppConnectionService.startActivity(intent); xmppConnectionService.startActivity(intent);
} }
@Override
public void onCallIntegrationSilence() {
xmppConnectionService.getNotificationService().stopSoundAndVibration();
}
@Override @Override
public void onAudioDeviceChanged( public void onAudioDeviceChanged(
final CallIntegration.AudioDevice selectedAudioDevice, final CallIntegration.AudioDevice selectedAudioDevice,