镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions iOS/APIExample/Examples/Advanced/ScreenShare/ScreenShare.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class ScreenShareMain: BaseViewController {

// enable video module and set up video encoding configs
agoraKit.enableVideo()
agoraKit.disableAudio()
agoraKit.enableAudio()
agoraKit.setVideoEncoderConfiguration(AgoraVideoEncoderConfiguration(size: resolution,
frameRate: fps,
bitrate: AgoraVideoBitrateStandard,
Expand Down Expand Up @@ -187,10 +187,10 @@ extension ScreenShareMain: AgoraRtcEngineDelegate {
func rtcEngine(_ engine: AgoraRtcEngineKit, didJoinedOfUid uid: UInt, elapsed: Int) {
LogUtils.log(message: "remote user join: \(uid) \(elapsed)ms", level: .info)

if(isScreenShareUid(uid: uid)) {
LogUtils.log(message: "Ignore screen share uid", level: .info)
return
}
// if(isScreenShareUid(uid: uid)) {
// LogUtils.log(message: "Ignore screen share uid", level: .info)
// return
// }

// Only one remote video view is available for this
// tutorial. Here we check if there exists a surface
Expand Down