Fairoj : Video chat changes and cus image capture enabled for smart pd
This commit is contained in:
parent
75fcd344d3
commit
2d59583f17
@ -129,7 +129,7 @@
|
|||||||
|
|
||||||
<!-- ENABLING THE FAB COPY LINK IMAGE CAPTURE AND VIDEO CALL BUTTON FOR TELE PD -->
|
<!-- ENABLING THE FAB COPY LINK IMAGE CAPTURE AND VIDEO CALL BUTTON FOR TELE PD -->
|
||||||
<div fxLayout="column">
|
<div fxLayout="column">
|
||||||
<app-speed-dial-fab fxFlex="30" class="fab-group" *ngIf="master.fk_pd_type == '3'" [options]="FabOptions" (fabClick)="copyCusURL($event)"></app-speed-dial-fab>
|
<app-speed-dial-fab fxFlex="30" class="fab-group" *ngIf="master.fk_pd_type == '3' || master.fk_pd_type == '2'" [options]="FabOptions" (fabClick)="copyCusURL($event)"></app-speed-dial-fab>
|
||||||
</div>
|
</div>
|
||||||
<!-- END OF COPY LINK IMAGE CAPTURE AND VIDEO CALL BUTTON FOR TELE PD -->
|
<!-- END OF COPY LINK IMAGE CAPTURE AND VIDEO CALL BUTTON FOR TELE PD -->
|
||||||
|
|
||||||
@ -145,19 +145,19 @@
|
|||||||
<!-- <app-speed-dial-fab class="fab-group" *ngIf="master.fk_pd_type == '3'" [options]="FabOptions" (fabClick)="copyCusURL($event)"></app-speed-dial-fab> -->
|
<!-- <app-speed-dial-fab class="fab-group" *ngIf="master.fk_pd_type == '3'" [options]="FabOptions" (fabClick)="copyCusURL($event)"></app-speed-dial-fab> -->
|
||||||
|
|
||||||
<!-- ENABLING THE SINGLE COPY LINK VIDEO CALL BUTTON FOR SMART PD -->
|
<!-- ENABLING THE SINGLE COPY LINK VIDEO CALL BUTTON FOR SMART PD -->
|
||||||
<span> <button *ngIf="master.fk_pd_type == '2'"
|
<!-- <span> <button *ngIf="master.fk_pd_type == '2'"
|
||||||
mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="copyCusURL({
|
mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="copyCusURL({
|
||||||
placeholder:'Video Chat',
|
placeholder:'Video Chat',
|
||||||
btnValue:'video'
|
btnValue:'video'
|
||||||
})"
|
})"
|
||||||
matTooltip="Copy Video Chat Customer Link" matTooltipPosition="above">
|
matTooltip="Copy Video Chat Customer Link" matTooltipPosition="above">
|
||||||
<mat-icon>link</mat-icon>
|
<mat-icon>link</mat-icon>
|
||||||
</button></span>
|
</button></span> -->
|
||||||
<!-- END OF COPY LINK VIDEO CALL BUTTON FOR SMART PD -->
|
<!-- END OF COPY LINK VIDEO CALL BUTTON FOR SMART PD -->
|
||||||
|
|
||||||
<span> <button *ngIf="master.fk_pd_type == '3' || master.fk_pd_type == '2'"
|
<span> <button *ngIf="master.fk_pd_type == '3' || master.fk_pd_type == '2'"
|
||||||
mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="onClickSmsLink(master)"
|
mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="onClickSmsLink(master)"
|
||||||
matTooltip="Send Link Via SMS" matTooltipPosition="above" [disabled] = "master.fk_pd_type == '2'">
|
matTooltip="Send Link Via SMS" matTooltipPosition="above" >
|
||||||
<mat-icon>sms</mat-icon>
|
<mat-icon>sms</mat-icon>
|
||||||
</button> </span>
|
</button> </span>
|
||||||
<!-- <div class="fab-group" *ngIf="master.fk_pd_type == '3'"> -->
|
<!-- <div class="fab-group" *ngIf="master.fk_pd_type == '3'"> -->
|
||||||
|
|||||||
@ -424,7 +424,7 @@ this.stopRecording(true);
|
|||||||
const fileURL1 = window.URL.createObjectURL(mergedVideos);
|
const fileURL1 = window.URL.createObjectURL(mergedVideos);
|
||||||
// localStorage.setItem('blob_url',fileURL1)
|
// localStorage.setItem('blob_url',fileURL1)
|
||||||
console.log("File url 11111",fileURL1)
|
console.log("File url 11111",fileURL1)
|
||||||
window.open(fileURL1)
|
// window.open(fileURL1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// let formData= new FormData();
|
// let formData= new FormData();
|
||||||
@ -471,6 +471,9 @@ sendVideoToServer(blob) {
|
|||||||
disconnect() {
|
disconnect() {
|
||||||
console.log(this.peer)
|
console.log(this.peer)
|
||||||
if(this.peer) {
|
if(this.peer) {
|
||||||
|
this.stopRecording().then(res=>{
|
||||||
|
|
||||||
|
})
|
||||||
this.peer.destroy();
|
this.peer.destroy();
|
||||||
this.peerVideoEnable = false
|
this.peerVideoEnable = false
|
||||||
this.targetpeer = ''
|
this.targetpeer = ''
|
||||||
@ -478,9 +481,7 @@ sendVideoToServer(blob) {
|
|||||||
// this.cdRef.detectChanges();
|
// this.cdRef.detectChanges();
|
||||||
this.socket.emit('callStatus',{random_string:this.chat_info.random_string,status:'disconnected',status_code:0})
|
this.socket.emit('callStatus',{random_string:this.chat_info.random_string,status:'disconnected',status_code:0})
|
||||||
this.peervideo.nativeElement.pause();
|
this.peervideo.nativeElement.pause();
|
||||||
this.stopRecording().then(res=>{
|
|
||||||
|
|
||||||
})
|
|
||||||
// this.stopAndGetSingleBlob(function(blob) {
|
// this.stopAndGetSingleBlob(function(blob) {
|
||||||
// var url = URL.createObjectURL(blob);
|
// var url = URL.createObjectURL(blob);
|
||||||
// // previewVideo.src = url;
|
// // previewVideo.src = url;
|
||||||
@ -556,9 +557,12 @@ sendVideoToServer(blob) {
|
|||||||
this.MediaStream.getVideoTracks()[0].enabled = this.video_mute;
|
this.MediaStream.getVideoTracks()[0].enabled = this.video_mute;
|
||||||
}
|
}
|
||||||
clearRandomString() {
|
clearRandomString() {
|
||||||
|
|
||||||
if(this.peer) {
|
if(this.peer) {
|
||||||
|
console.log("if part");
|
||||||
this.disconnect() }
|
this.disconnect() }
|
||||||
else{
|
else{
|
||||||
|
console.log("else part");
|
||||||
this.socket.emit('callStatus',{random_string:this.chat_info.random_string,status:'disconnected',status_code:0})
|
this.socket.emit('callStatus',{random_string:this.chat_info.random_string,status:'disconnected',status_code:0})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user