@dtelecom/livekit-client 1.12.18 → 1.12.19

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.
@@ -14198,7 +14198,7 @@ function getMatch(exp, ua) {
14198
14198
  return match && match.length >= id && match[id] || '';
14199
14199
  }
14200
14200
 
14201
- var version$1 = "1.12.18";
14201
+ var version$1 = "1.12.19";
14202
14202
 
14203
14203
  const version = version$1;
14204
14204
  const protocolVersion = 9;
@@ -23783,10 +23783,10 @@ class Room extends EventEmitter {
23783
23783
  });
23784
23784
  });
23785
23785
  try {
23786
- yield Promise.all(elements.map(e => {
23786
+ yield Promise.all([this.acquireAudioContext(), ...elements.map(e => {
23787
23787
  e.muted = false;
23788
23788
  return e.play();
23789
- }));
23789
+ })]);
23790
23790
  this.handleAudioPlaybackStarted();
23791
23791
  } catch (err) {
23792
23792
  this.handleAudioPlaybackFailed(err);
@@ -24018,7 +24018,7 @@ class Room extends EventEmitter {
24018
24018
  // for iOS a newly created AudioContext is always in `suspended` state.
24019
24019
  // we try our best to resume the context here, if that doesn't work, we just continue with regular processing
24020
24020
  try {
24021
- yield this.audioContext.resume();
24021
+ yield Promise.race([this.audioContext.resume(), sleep(200)]);
24022
24022
  } catch (e) {
24023
24023
  livekitLogger.warn(e);
24024
24024
  }