@vgroup/dialbox 0.4.97 → 0.4.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/call-progress/call-progress.component.mjs +8 -3
- package/fesm2015/vgroup-dialbox.mjs +7 -2
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +7 -2
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/components/call-progress/call-progress.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1781,7 +1781,8 @@ class CallProgressComponent {
|
|
|
1781
1781
|
this.filteredList = [];
|
|
1782
1782
|
this.showButton = false;
|
|
1783
1783
|
this.isRinging = false;
|
|
1784
|
-
this.
|
|
1784
|
+
this.audioURL = '../../shared/incoming_call.mp3';
|
|
1785
|
+
this.incomingAudio = new Audio(this.audioURL);
|
|
1785
1786
|
this.micOn = false;
|
|
1786
1787
|
this.isMinimised = false;
|
|
1787
1788
|
console.log('Call Progress Component');
|
|
@@ -1997,7 +1998,7 @@ class CallProgressComponent {
|
|
|
1997
1998
|
}
|
|
1998
1999
|
}
|
|
1999
2000
|
this.cdr.detectChanges();
|
|
2000
|
-
let incomingData = this.currentCallList.find((res) => res.isIncomingCall && !res.isAcceptCall);
|
|
2001
|
+
let incomingData = this.currentCallList.find((res) => res.isIncomingCall && !res.isAcceptCall && res.businessOtp);
|
|
2001
2002
|
if (incomingData?.id && !this.isRinging) {
|
|
2002
2003
|
this.incomingAudio.play();
|
|
2003
2004
|
this.isRinging = true;
|
|
@@ -2009,6 +2010,10 @@ class CallProgressComponent {
|
|
|
2009
2010
|
console.log('currentCallList', this.currentCallList);
|
|
2010
2011
|
}
|
|
2011
2012
|
else if (!this.newIncomingCallsList?.length) {
|
|
2013
|
+
if (this.incomingAudio && this.isRinging) {
|
|
2014
|
+
this.incomingAudio.pause();
|
|
2015
|
+
}
|
|
2016
|
+
this.isRinging = false;
|
|
2012
2017
|
this.isConcurrentIncoming = false;
|
|
2013
2018
|
this.incomingCallDiv = false;
|
|
2014
2019
|
this.cdr.detectChanges();
|