|
|
|
@ -27,9 +27,9 @@ class VideoCallService extends BaseService{
|
|
|
|
|
this.patient = patientModel;
|
|
|
|
|
DoctorProfileModel doctorProfile = await getDoctorProfile(isGetProfile: true);
|
|
|
|
|
await VideoChannel.openVideoCallScreen(
|
|
|
|
|
kToken: startCallRes.openTokenID,
|
|
|
|
|
kSessionId: startCallRes.openSessionID,
|
|
|
|
|
kApiKey: '46209962',//'46209962',
|
|
|
|
|
kToken: "T1==cGFydG5lcl9pZD00NzI0Nzk1NCZzaWc9NGIyZDljOTY3YjFiNWU1YzUzNzFmMjIyNjJmNmEzY2Y5NzZjOTdlYzpzZXNzaW9uX2lkPTFfTVg0ME56STBOemsxTkg1LU1UWXlNekEyTlRRMU9EVXhObjVrVFRoMFlVdFJXaXRYTWpadFZGZHFhSGxZVGpOdE1UVi1mZyZjcmVhdGVfdGltZT0xNjIzMDY1NDk1Jm5vbmNlPTAuMjM2Mjk0NTIwMTkyOTA4OTcmcm9sZT1wdWJsaXNoZXImZXhwaXJlX3RpbWU9MTYyNTY1NzQ5NCZpbml0aWFsX2xheW91dF9jbGFzc19saXN0PQ==",//tartCallRes.openTokenID,
|
|
|
|
|
kSessionId: '1_MX40NzI0Nzk1NH5-MTYyMzA2NTQ1ODUxNn5kTTh0YUtRWitXMjZtVFdqaHlYTjNtMTV-fg',//startCallRes.openSessionID,
|
|
|
|
|
kApiKey: '47247954',//'46209962',
|
|
|
|
|
vcId: patient.vcId,
|
|
|
|
|
patientName: patient.fullName ?? (patient.firstName != null ? "${patient.firstName} ${patient.lastName}" : "-"),
|
|
|
|
|
tokenID: await sharedPref.getString(TOKEN),
|
|
|
|
@ -79,7 +79,7 @@ class VideoCallService extends BaseService{
|
|
|
|
|
endCallReq.generalid = 'Cs2020@2016\$2958';
|
|
|
|
|
endCallReq.vCID = vCID;
|
|
|
|
|
endCallReq.isDestroy = isPatient;
|
|
|
|
|
await _liveCarePatientServices.endCall(endCallReq);
|
|
|
|
|
// await _liveCarePatientServices.endCall(endCallReq);
|
|
|
|
|
if (_liveCarePatientServices.hasError) {
|
|
|
|
|
error = _liveCarePatientServices.error;
|
|
|
|
|
}
|
|
|
|
|