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(prejoin): Add audio tracks on Safari always. This fixes a bug where remote audio is not being played out if the user joins audio and video muted from pre-join screen.

Jaya Allamsettybc6070b98d05
diff --git a/react/features/prejoin/actions.js b/react/features/prejoin/actions.js
index 52fbbe6e02..9959063d9f 100644
--- a/react/features/prejoin/actions.js
+++ b/react/features/prejoin/actions.js
@@ -6,8 +6,7 @@ declare var APP: Object;
import { v4 as uuidv4 } from 'uuid';
import { getDialOutStatusUrl, getDialOutUrl, updateConfig } from '../base/config';
-import { isIosMobileBrowser } from '../base/environment/utils';
-import { createLocalTrack } from '../base/lib-jitsi-meet';
+import { browser, createLocalTrack } from '../base/lib-jitsi-meet';
import { isVideoMutedByUser, MEDIA_TYPE } from '../base/media';
import { updateSettings } from '../base/settings';
import {
@@ -240,10 +239,10 @@ export function joinConference(options?: Object, ignoreJoiningInProgress: boolea
// Do not signal audio/video tracks if the user joins muted.
for (const track of localTracks) {
- // Always add the audio track on mobile Safari because of a known issue where audio playout doesn't happen
+ // Always add the audio track on Safari because of a known issue where audio playout doesn't happen
// if the user joins audio and video muted.
if (track.muted
- && !(isIosMobileBrowser() && track.jitsiTrack && track.jitsiTrack.getType() === MEDIA_TYPE.AUDIO)) {
+ && !(browser.isWebKitBased() && track.jitsiTrack && track.jitsiTrack.getType() === MEDIA_TYPE.AUDIO)) {
try {
await dispatch(replaceLocalTrack(track.jitsiTrack, null));
} catch (error) {