video record issues fixed
This commit is contained in:
parent
f733ffb4f6
commit
fc3ec32121
BIN
Sparq_video_chat(26-10-2021).zip
Normal file
BIN
Sparq_video_chat(26-10-2021).zip
Normal file
Binary file not shown.
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user