fix(audio-configs) Fix startWithAudioMuted overrriding startSilent (#12251)
This commit is contained in:
parent
02f5987187
commit
ca54533153
|
@ -791,7 +791,6 @@ export default {
|
||||||
startAudioOnly: config.startAudioOnly,
|
startAudioOnly: config.startAudioOnly,
|
||||||
startScreenSharing: config.startScreenSharing,
|
startScreenSharing: config.startScreenSharing,
|
||||||
startWithAudioMuted: getStartWithAudioMuted(APP.store.getState())
|
startWithAudioMuted: getStartWithAudioMuted(APP.store.getState())
|
||||||
|| config.startSilent
|
|
||||||
|| isUserInteractionRequiredForUnmute(APP.store.getState()),
|
|| isUserInteractionRequiredForUnmute(APP.store.getState()),
|
||||||
startWithVideoMuted: getStartWithVideoMuted(APP.store.getState())
|
startWithVideoMuted: getStartWithVideoMuted(APP.store.getState())
|
||||||
|| isUserInteractionRequiredForUnmute(APP.store.getState())
|
|| isUserInteractionRequiredForUnmute(APP.store.getState())
|
||||||
|
|
|
@ -74,7 +74,8 @@ function _isVideoMutedByAuthority(
|
||||||
* @returns {boolean} - The computed startWithAudioMuted value that will be used.
|
* @returns {boolean} - The computed startWithAudioMuted value that will be used.
|
||||||
*/
|
*/
|
||||||
export function getStartWithAudioMuted(stateful: IStateful) {
|
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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue