video record issues fixed

This commit is contained in:
venbatechnologies@gmail.com 2021-10-27 12:17:50 +05:30
parent f733ffb4f6
commit fc3ec32121
2 changed files with 6 additions and 3 deletions

Binary file not shown.

View File

@ -136,13 +136,16 @@ export class TwilioService {
});
console.log('abc');
console.log(this.getWithOutCustomer);
let withoutcustomer = this.getWithOutCustomer(this.roomParticipants)
console.log('getWithOutCustomer',withoutcustomer)
console.log('count');
console.log(withoutcustomer);
if(this.user_data.type == '1' && withoutcustomer == '1'){
if((this.user_data.type == '1' && withoutcustomer == '1') ||(this.user_data.type == '2' && withoutcustomer == '1')){
console.log('sineedge');
// alert('record');
console.log("User type in service",this.user_data)
let params = {"fk_pd_id":this.user_data.pd_id,"room_id":this.roomObj.sid,"is_call_ended":"0"}
console.log("connected api",params)
@ -308,9 +311,9 @@ export class TwilioService {
getWithOutCustomer(participant){
let participantWOC: any = []
participant.forEach(element => {
if(element.identity != 'CUSTOMER'){
//if(element.identity != 'CUSTOMER'){
participantWOC.push(element)
}
// }
});
return participantWOC.length
}