Skip to content

Commit

Permalink
Merge pull request #82 from mu-code007/master
Browse files Browse the repository at this point in the history
Update QRDRTCViewController.m
  • Loading branch information
uu-code007 authored Jan 12, 2024
2 parents fa2e36b + 9dd2c53 commit fc95c29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions QNRTCKitDemo/QNRTCKitDemo/QRDRTCViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,9 @@ - (void)requestToken {
- (void)setupClient {
[QNRTC setLogConfig:[QNRTCLogConfiguration defaultRTCLogConfig]];

QNRTCConfiguration *rtcConfig = [[QNRTCConfiguration alloc] initWithPolicy:QNRTCPolicyForceUDP audioScene:QNAudioSceneDefault reconnectionTimeout:30000 encoderType:[self.wareValue intValue]];
QNRTCConfiguration *rtcConfig = [[QNRTCConfiguration alloc] initWithPolicy:QNRTCPolicyForceUDP audioScene:[_senceValue intValue] reconnectionTimeout:30000 encoderType:[self.wareValue intValue]];
// 1. 初始配置 QNRTC
[QNRTC initRTC:rtcConfig];
[QNRTC setAudioScene:[_senceValue intValue]];

// 2.创建初始化 RTC 核心类 QNRTCClient
self.client = [QNRTC createRTCClient];
Expand Down

0 comments on commit fc95c29

Please sign in to comment.