Skip to content

Commit d37e1ff

Browse files
author
zhaoyongqiang
committed
fix 屏幕共享没有采集声音的问题
1 parent 4650051 commit d37e1ff

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

iOS/APIExample/APIExample/Examples/Advanced/ScreenShare/ScreenShare.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,14 @@ class ScreenShareMain: BaseViewController {
194194
@IBAction func stopScreenCapture(_ sender: Any) {
195195
agoraKit.stopScreenCapture()
196196
option.publishScreenCaptureVideo = false
197+
option.publishScreenCaptureAudio = false
197198
option.publishCameraTrack = true
198199
agoraKit.updateChannel(with: option)
199200
}
200201
@IBAction func startScreenCapture(_ sender: Any) {
201202
agoraKit.startScreenCapture(screenParams)
202203
option.publishScreenCaptureVideo = true
204+
option.publishScreenCaptureAudio = true
203205
option.publishCameraTrack = false
204206
agoraKit.updateChannel(with: option)
205207
prepareSystemBroadcaster()

0 commit comments

Comments
 (0)