Skip to content

Fix initial microphone state (don't publish if muted)#771

Merged
DanielNovak merged 2 commits intodevelopfrom
fix_audio_mic
Aug 17, 2023
Merged

Fix initial microphone state (don't publish if muted)#771
DanielNovak merged 2 commits intodevelopfrom
fix_audio_mic

Conversation

@DanielNovak
Copy link
Contributor

Resolves https://github.com/GetStream/android-video-issues-tracking/issues/18

We need to only publish the audio track if the microphone is unmuted. Currently we publish it and then we mute it immediately - but that doesn't work correctly because the mute request is faster than the track creation (it happens before TrackPublishedEvent.
This is useful in following scenario:

  • in lobby screen you mute the mic
  • then you join the call

We would previously create the audio track and then mute it after that. This "worked" - but other participants would see you as "unmuted" even though locally the microphone was disabled, but the mute request (RtcSession.setMuteState()) was called too soon and didn't have an effect.

This change now also allows us to remove the "hotfix" we had in the TrackPublishedEvent for handling the local participant audio and video state.

@DanielNovak DanielNovak added the bug Something isn't working label Aug 17, 2023
@DanielNovak DanielNovak requested a review from a team as a code owner August 17, 2023 13:46
@DanielNovak DanielNovak merged commit 7cc55e5 into develop Aug 17, 2023
@DanielNovak DanielNovak deleted the fix_audio_mic branch August 17, 2023 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant