react to onSilence() and stop ringtone

(cherry picked from commit a78747eaa275083cbd52159bc7bc2b0e55cb4bee)
This commit is contained in:
Daniel Gultsch 2024-01-21 11:08:43 +01:00 committed by Arne
parent 5dc50bdf8b
commit f7a2621d59
3 changed files with 17 additions and 0 deletions

View file

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

View file

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

View file

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