react to onSilence() and stop ringtone
This commit is contained in:
parent
bfe2aff7a1
commit
a78747eaa2
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1156,5 +1156,10 @@ public class JingleConnectionManager extends AbstractConnectionManager {
|
|||
|
||||
@Override
|
||||
public void onCallIntegrationAnswer() {}
|
||||
|
||||
@Override
|
||||
public void onCallIntegrationSilence() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2718,6 +2718,11 @@ public class JingleRtpConnection extends AbstractJingleConnection
|
|||
xmppConnectionService.startActivity(intent);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCallIntegrationSilence() {
|
||||
xmppConnectionService.getNotificationService().stopSoundAndVibration();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAudioDeviceChanged(
|
||||
final CallIntegration.AudioDevice selectedAudioDevice,
|
||||
|
|
Loading…
Reference in a new issue