fix(audio-only) Do not create a new track for audio-only changes.

Now that screenshare is permitted when a user is in audio-only mode, do not create a new video track if it doesn't exist when audio-only mode is automatically disabled. New tracks should only be prompted by user action such a camera unmute or start screenshare. Fixes https://github.com/jitsi/jitsi-meet/issues/11460.
This commit is contained in:
Jaya Allamsetty 2022-05-02 13:09:35 -04:00
parent 8e67c8e74f
commit fd62ca6c67
1 changed files with 2 additions and 1 deletions

View File

@ -2617,7 +2617,8 @@ export default {
track => track.jitsiTrack track => track.jitsiTrack
&& track.jitsiTrack.getType() === 'video')); && track.jitsiTrack.getType() === 'video'));
if (!isTrackInRedux) {
if (isTrackInRedux) {
this.muteVideo(audioOnly); this.muteVideo(audioOnly);
} }