Skip to content

Commit 1fe66a2

Browse files
author
zhaoyongqiang
committed
Fixed an issue where the wheat does not flow
1 parent b9b2d5b commit 1fe66a2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

iOS/APIExample/APIExample/Examples/Advanced/LiveStreaming/LiveStreaming.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ class LiveStreamingMain: BaseViewController {
317317
} else {
318318
becomeAudience()
319319
}
320+
let option = AgoraRtcChannelMediaOptions()
321+
option.publishCameraTrack = role == .broadcaster
322+
option.publishMicrophoneTrack = role == .broadcaster
323+
agoraKit.updateChannel(with: option)
320324
}
321325

322326
@IBAction func onToggleUltraLowLatency(_ sender:UISwitch) {

0 commit comments

Comments
 (0)