@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.
@@ -1931,13 +1931,17 @@ class CallProgressComponent {
1931
1931
  this.cdr.detectChanges();
1932
1932
  let incomingData = this.currentCallList.find((res) => res.isIncomingCall && !res.isAcceptCall);
1933
1933
  if (incomingData?.id && !this.isRinging) {
1934
- this.incomingAudio.play().catch(err => {
1935
- console.error('Audio play failed:', err);
1934
+ this.incomingAudio.volume = 0;
1935
+ this.incomingAudio.play().then(() => {
1936
+ // this.incomingAudio.pause();
1937
+ // this.incomingAudio.currentTime = 0;
1938
+ this.incomingAudio.volume = 1;
1939
+ // this.audioUnlocked = true;
1936
1940
  });
1937
1941
  this.isRinging = true;
1938
1942
  }
1939
1943
  else if (!incomingData?.id && this.isRinging) {
1940
- this.incomingAudio.pause();
1944
+ // this.incomingAudio.pause();
1941
1945
  this.incomingAudio.currentTime = 0;
1942
1946
  this.isRinging = false;
1943
1947
  }