Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(ios) create audio track early

Saúl Ibarra Corretgé35e363577c30
diff --git a/react/features/base/tracks/actions.js b/react/features/base/tracks/actions.js
index 3c73506ddf..2933bc938b 100644
--- a/react/features/base/tracks/actions.js
+++ b/react/features/base/tracks/actions.js
@@ -55,9 +55,12 @@ export function createDesiredLocalTracks(...desiredTypes) {
dispatch(destroyLocalDesktopTrackIfExists());
if (desiredTypes.length === 0) {
- const { audio, video } = state['features/base/media'];
+ const { video } = state['features/base/media'];
- audio.muted || desiredTypes.push(MEDIA_TYPE.AUDIO);
+ // XXX: Always create the audio track early, even if it will be muted.
+ // This fixes a timing issue when adding the track to the conference which
+ // manifests primarily on iOS 15.
+ desiredTypes.push(MEDIA_TYPE.AUDIO);
// XXX When the app is coming into the foreground from the
// background in order to handle a URL, it may realize the new