Skip to content

Commit f033fd3

Browse files
committed
Fix airpods pro 2 now working issue
1 parent d80f828 commit f033fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flat/Modules/ClassRoom/Rtc/Rtc.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class Rtc: NSObject {
205205
let agoraKitConfig = AgoraRtcEngineConfig()
206206
agoraKitConfig.appId = appId
207207
agoraKitConfig.areaCode = .CN
208-
agoraKitConfig.channelProfile = communication ? .communication : .liveBroadcasting
208+
agoraKitConfig.channelProfile = .liveBroadcasting // 只用 liveBroadcasting 因为另一个模式会导致 airpodspro 2 无法使用 //communication ? .communication : .liveBroadcasting
209209
agoraKit = .sharedEngine(with: agoraKitConfig, delegate: self)
210210

211211
agoraKit.setLogFile("") // set to default path

0 commit comments

Comments
 (0)