Compare commits

...

2 Commits

Author SHA1 Message Date
Horatiu Muresan f96dc317dc fix 2022-09-27 13:38:45 +03:00
Horatiu Muresan eb86bdd733 fix(audio-configs) Fix startWithAudioMuted false overrriding startSilent true 2022-09-27 13:34:59 +03:00
2 changed files with 2 additions and 2 deletions

View File

@ -791,7 +791,6 @@ export default {
startAudioOnly: config.startAudioOnly,
startScreenSharing: config.startScreenSharing,
startWithAudioMuted: getStartWithAudioMuted(APP.store.getState())
|| config.startSilent
|| isUserInteractionRequiredForUnmute(APP.store.getState()),
startWithVideoMuted: getStartWithVideoMuted(APP.store.getState())
|| isUserInteractionRequiredForUnmute(APP.store.getState())

View File

@ -74,7 +74,8 @@ function _isVideoMutedByAuthority(
* @returns {boolean} - The computed startWithAudioMuted value that will be used.
*/
export function getStartWithAudioMuted(stateful: IStateful) {
return Boolean(getPropertyValue(stateful, 'startWithAudioMuted', START_WITH_AUDIO_VIDEO_MUTED_SOURCES));
return Boolean(getPropertyValue(stateful, 'startWithAudioMuted', START_WITH_AUDIO_VIDEO_MUTED_SOURCES))
|| Boolean(getPropertyValue(stateful, 'startSilent', START_WITH_AUDIO_VIDEO_MUTED_SOURCES));
}
/**