@vgroup/dialbox 0.4.106 → 0.4.107

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.
@@ -1882,13 +1882,17 @@ class CallProgressComponent {
1882
1882
  this.cdr.detectChanges();
1883
1883
  let incomingData = this.currentCallList.find((res) => res.isIncomingCall && !res.isAcceptCall);
1884
1884
  if ((incomingData === null || incomingData === void 0 ? void 0 : incomingData.id) && !this.isRinging) {
1885
- this.incomingAudio.play().catch(err => {
1886
- console.error('Audio play failed:', err);
1885
+ this.incomingAudio.volume = 0;
1886
+ this.incomingAudio.play().then(() => {
1887
+ // this.incomingAudio.pause();
1888
+ // this.incomingAudio.currentTime = 0;
1889
+ this.incomingAudio.volume = 1;
1890
+ // this.audioUnlocked = true;
1887
1891
  });
1888
1892
  this.isRinging = true;
1889
1893
  }
1890
1894
  else if (!(incomingData === null || incomingData === void 0 ? void 0 : incomingData.id) && this.isRinging) {
1891
- this.incomingAudio.pause();
1895
+ // this.incomingAudio.pause();
1892
1896
  this.incomingAudio.currentTime = 0;
1893
1897
  this.isRinging = false;
1894
1898
  }