Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(breakout-rooms): bypass disableInitialGUM when joining breakout room
Hristo Terezov80ad2c9d16ee
diff --git a/conference.js b/conference.jsindex b181a54fcc..9d275377c7 100644--- a/conference.js+++ b/conference.js@@ -389,6 +389,7 @@ export default {* Returns an object containing a promise which resolves with the created tracks &* the errors resulting from that process.* @param {object} options+ * @param {boolean} option.isBreakoutRoom - true if we are creating the initial local tracks in breakout room.* @param {boolean} options.startAudioOnly=false - if <tt>true</tt> then* only audio track will be created and the audio only mode will be turned* on.@@ -403,14 +404,16 @@ export default {*/createInitialLocalTracks(options = {}, recordTimeMetrics = false) {const errors = {};+ const { isBreakoutRoom = false } = options;// Always get a handle on the audio input device so that we have statistics (such as "No audio input" or// "Are you trying to speak?" ) even if the user joins the conference muted.- const initialDevices = config.startSilent || config.disableInitialGUM ? [] : [ MEDIA_TYPE.AUDIO ];- const requestedAudio = !config.disableInitialGUM;+ const initialDevices+ = config.startSilent || (config.disableInitialGUM && !isBreakoutRoom) ? [] : [ MEDIA_TYPE.AUDIO ];+ const requestedAudio = !config.disableInitialGUM || isBreakoutRoom;let requestedVideo = false;- if (!config.disableInitialGUM+ if ((!config.disableInitialGUM || isBreakoutRoom)&& !options.startWithVideoMuted&& !options.startAudioOnly&& !options.startScreenSharing) {diff --git a/react/features/breakout-rooms/actions.ts b/react/features/breakout-rooms/actions.tsindex 69f91923db..95224de6ed 100644--- a/react/features/breakout-rooms/actions.ts+++ b/react/features/breakout-rooms/actions.ts@@ -254,6 +254,7 @@ export function moveToRoom(roomId?: string) {}APP.conference.joinRoom(_roomId, {+ isBreakoutRoom: true,startWithAudioMuted: isAudioMuted,startWithVideoMuted: isVideoMuted});