Skip to content

Commit

Permalink
当插入耳机或者蓝牙进入会议时,解决没有更新正确speaker状态的问题 #450
Browse files Browse the repository at this point in the history
  • Loading branch information
heavyrian2012 committed Jul 11, 2023
1 parent 5dfd270 commit 0b5a518
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1684,19 +1684,17 @@ - (void)didChangeState:(WFAVEngineState)state {
self.managerButton.hidden = NO;
self.screenSharingButton.hidden = NO;
if (self.currentSession.isAudioOnly) {
self.speakerButton.hidden = NO;
[self updateSpeakerButton];
self.audioButton.hidden = NO;
self.videoButton.hidden = YES;
} else {
self.speakerButton.hidden = YES;
self.audioButton.hidden = NO;
self.videoButton.hidden = NO;
}
self.hangupButton.hidden = NO;
self.speakerButton.hidden = NO;
[self updateAudioButton];
[self updateVideoButton];
[self updateSpeakerButton];

self.informationButton.hidden = NO;
self.topBarView.hidden = NO;
Expand Down

0 comments on commit 0b5a518

Please sign in to comment.