outgoing side i'm not get accepted or onParticipantConnected call method on twillio. I'm call outgoing side on Call, it is allways get on Onconnected method from outgoing side and I don't get or update onconnect or onconnected and accepted or participate method method from outgoing side on Android twillio. twillio voice call.listener only get three method onfailure, connected and onDisconnected method orreride. just like in twiilo Video calling get onParticipantConnected method to esally find out both user are connected , so i have esaly start timmer or chornometer. please provide me exact solution #248
befor i'm using implementation 'com.twilio:voice-android:2.0.4' than after implementation 'com.twilio:voice-android:2.0.7' but both do not get the exact solution.
Please ensure that you are not sharing any
Personally Identifiable Information(PII)
or sensitive account information (API keys, credentials, etc.) when reporting an issue.
Description
need help, I want to start "chronometer" when user accepts a call or connecting call. I have to override three method -
1)onConnectFailure ,
2)onConnected and
3) onDisconnected .
but I'm facing problems at the outgoing calling time than connected method directly call and on connecting can not call at the call ringing time, so I'm cannot manage the programmatically start chronometer. Currently in your demo code "chronometer" start in "onConnected" method. In SDK there a Interface "InternalListener", In this interface "connecting" but it's not public so I can't access this method on Outgoing Activity class. I have not to get a suitable answer
[Description of the issue]
Steps to Reproduce
[Step one]
[Step two]
[Insert as many steps as needed]
Code
Call Listner use in Outgoing Activity =>
private Call.Listener callListener() {
return new Call.Listener() {
public ContentResolver callControlManager;
...................................................
And I have to call updateCallInterface method to get current status according to start the chronometer.
If I'm outgoing call at this time call directly call " connected" method so I'm starting chronometer. there is wrong programmatically because Outgoing Side timmer is started but incoming side does not accept call.
OnIncomming side fine work and get all of the updated status from send to outgoing user.
but incommeing status do not get on outging side.
...............................
private void updateCallInterface(String flage) {
Log.v(TAG, "updateCallInterface Flag " + flage);
switch (flage) {
case ApiConstant.ACTION_PENDING:
Glide.with(this).load(imageUrl).placeholder(R.drawable.profile_placeholder).diskCacheStrategy(DiskCacheStrategy.ALL).dontAnimate().into(imgProfile);
tvName.setText(userName);
audioManager.setSpeakerphoneOn(false);
mute_action_speaker.setImageResource(R.mipmap.icon_speaker_off);
chronometer.setVisibility(View.INVISIBLE);
chronometer.stop();
tvstatus.setText(FinalKeywords.RINGINNG);
muteActionFab.setImageDrawable(ContextCompat.getDrawable(OutgoingVoiceActivity.this, R.drawable.white_icon_mic_on));
break;
case ApiConstant.ACTION_ACCEPT:
Log.e(TAG, "updateCallInterface: " + "Call accept");
//isConnected = true;
break;
case ApiConstant.ACTION_CONNECT:
if (activeCall != null) {
tvstatus.setText(FinalKeywords.CONNECTED);
} else {
tvstatus.setText(FinalKeywords.CONNECTING);
}
/* Old Line*/
chronometer.setVisibility(View.VISIBLE);
chronometer.setBase(SystemClock.elapsedRealtime());
chronometer.start();
/*New Lines */
callChronometerlistner();
baseTime = SystemClock.elapsedRealtime() - stopTime;
chronometer.setBase(baseTime);
chronometer.setFormat("HH:MM:SS");
Log.v(TAG, "Chronometer Time Format " + chronometer.getBase());
Log.v(TAG, "Chronometer Base Time " + chronometer.getBase());
break;
case ApiConstant.ACTION_REJECT:
chronometer.stop();
audioManager = null;
finish();
tvstatus.setText("");
setAudioFocus(false);
break;
case ApiConstant.ACTION_DISCONNECT:
setAudioFocus(false);
chronometer.stop();
audioManager = null;
if (activeCall != null) {
activeCall.disconnect();
activeCall = null;
}
tvstatus.setText(FinalKeywords.DISCONNECTING);
setAudioFocus(false);
finish();
break;
}
}
befor i'm using implementation 'com.twilio:voice-android:2.0.4' than after implementation 'com.twilio:voice-android:2.0.7' but both do not get the exact solution.
my Android project sdk version is -
compileSdkVersion 27 defaultConfig { applicationId "project name" minSdkVersion 21 targetSdkVersion 27 versionCode 2 versionName "1.0" multiDexEnabled true
and build.gradle=>
buildscript {
// classpath 'com.google.gms:google-services:4.0.1'
}
allprojects { repositories { google() jcenter()
}
task clean(type: Delete) { delete rootProject.buildDir }
Description
need help, I want to start "chronometer" when user accepts a call or connecting call. I have to override three method - 1)onConnectFailure , 2)onConnected and 3) onDisconnected . but I'm facing problems at the outgoing calling time than connected method directly call and on connecting can not call at the call ringing time, so I'm cannot manage the programmatically start chronometer. Currently in your demo code "chronometer" start in "onConnected" method. In SDK there a Interface "InternalListener", In this interface "connecting" but it's not public so I can't access this method on Outgoing Activity class. I have not to get a suitable answer [Description of the issue]
Steps to Reproduce
Code
Call Listner use in Outgoing Activity => private Call.Listener callListener() { return new Call.Listener() { public ContentResolver callControlManager;
................................................... And I have to call updateCallInterface method to get current status according to start the chronometer. If I'm outgoing call at this time call directly call " connected" method so I'm starting chronometer. there is wrong programmatically because Outgoing Side timmer is started but incoming side does not accept call. OnIncomming side fine work and get all of the updated status from send to outgoing user. but incommeing status do not get on outging side.
...............................
Expected Behavior
[What you expect to happen]
Actual Behavior
[What actually happens]
Reproduces How Often
[What percentage of the time does it reproduce?]
Logs
Versions
All relevant version information for the issue.
Voice Android SDK
OS Version
compileSdkVersion 27 defaultConfig { applicationId "com.clinicalls" minSdkVersion 21 targetSdkVersion 27 versionCode 2 versionName "1.0" multiDexEnabled true
Device Model
All of the types of android device