hanc-webrtc-widgets 2.2.6 → 2.2.9

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.
@@ -17305,7 +17305,7 @@ class wd extends EventTarget {
17305
17305
  if (t)
17306
17306
  try {
17307
17307
  await n.localParticipant.setMicrophoneEnabled(!0, {
17308
- echoCancellation: !this.isAppleDevice,
17308
+ echoCancellation: !0,
17309
17309
  noiseSuppression: !0,
17310
17310
  autoGainControl: !0
17311
17311
  }), this.microphoneEnabled = !0, this.dispatchEvent(new CustomEvent("microphone-enabled")), t.getTracks().forEach((l) => l.stop()), this.scheduleTimer(() => {
@@ -17409,7 +17409,7 @@ class wd extends EventTarget {
17409
17409
  this.audioElements.delete(s.identity);
17410
17410
  }
17411
17411
  const a = t.attach();
17412
- a.setAttribute("playsinline", "true"), a.setAttribute("webkit-playsinline", "true"), a.dataset.participantId = s.identity, this.audioContainer ? this.audioContainer.appendChild(a) : (console.warn("[LiveKit] Audio container not found, appending to body"), document.body.appendChild(a)), this.audioElements.set(s.identity, a), this.playAudioElement(a).then((c) => {
17412
+ a.setAttribute("playsinline", "true"), a.setAttribute("webkit-playsinline", "true"), a.dataset.participantId = s.identity, this.isAppleDevice && (a.volume = 0.8), this.audioContainer ? this.audioContainer.appendChild(a) : (console.warn("[LiveKit] Audio container not found, appending to body"), document.body.appendChild(a)), this.audioElements.set(s.identity, a), this.playAudioElement(a).then((c) => {
17413
17413
  c || (this.audioPlaybackPrompt = !0, this.dispatchEvent(
17414
17414
  new CustomEvent("audio-playback-status-changed", {
17415
17415
  detail: { canPlayback: !1 }
@@ -17461,7 +17461,7 @@ class wd extends EventTarget {
17461
17461
  if (this.room)
17462
17462
  try {
17463
17463
  this.microphoneEnabled ? (await this.room.localParticipant.setMicrophoneEnabled(!1), this.microphoneEnabled = !1, this.dispatchEvent(new CustomEvent("microphone-disabled"))) : (await this.room.localParticipant.setMicrophoneEnabled(!0, {
17464
- echoCancellation: !this.isAppleDevice,
17464
+ echoCancellation: !0,
17465
17465
  noiseSuppression: !0,
17466
17466
  autoGainControl: !0
17467
17467
  }), this.microphoneEnabled = !0, this.dispatchEvent(new CustomEvent("microphone-enabled")));