Skip to content

Commit

Permalink
avoid mpk echo issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xianing committed Dec 28, 2021
1 parent 4fb85db commit 0d087ce
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ class MediaPlayerMain: BaseViewController, UITextFieldDelegate {
option.autoSubscribeVideo = .of(true)
option.clientRoleType = .of((Int32)(AgoraClientRole.broadcaster.rawValue))
let result = agoraKit.joinChannel(byToken: KeyCenter.Token, channelId: channelName, uid: CAMERA_UID, mediaOptions: option, joinSuccess: nil)

agoraKit.muteRemoteAudioStream(PLAYER_UID, mute: true)

let option1 = AgoraRtcChannelMediaOptions()
option1.autoSubscribeAudio = .of(false)
option1.autoSubscribeVideo = .of(false)
Expand Down

0 comments on commit 0d087ce

Please sign in to comment.