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;
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1156,5 +1156,10 @@ public class JingleConnectionManager extends AbstractConnectionManager {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCallIntegrationAnswer() {}
|
public void onCallIntegrationAnswer() {}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onCallIntegrationSilence() {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue