Skip to content

Commit 0d087ce

Browse files
author
xianing
committed
avoid mpk echo issue
1 parent 4fb85db commit 0d087ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

iOS/APIExample/Examples/Advanced/MediaPlayer/MediaPlayer.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ class MediaPlayerMain: BaseViewController, UITextFieldDelegate {
150150
option.autoSubscribeVideo = .of(true)
151151
option.clientRoleType = .of((Int32)(AgoraClientRole.broadcaster.rawValue))
152152
let result = agoraKit.joinChannel(byToken: KeyCenter.Token, channelId: channelName, uid: CAMERA_UID, mediaOptions: option, joinSuccess: nil)
153-
153+
agoraKit.muteRemoteAudioStream(PLAYER_UID, mute: true)
154+
154155
let option1 = AgoraRtcChannelMediaOptions()
155156
option1.autoSubscribeAudio = .of(false)
156157
option1.autoSubscribeVideo = .of(false)

0 commit comments

Comments
 (0)