Skip to content

Commit 838255c

Browse files
author
shengcui2018
committed
更新Mac Demo源码
1 parent 8123416 commit 838255c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Mac/TRTCDemo/TRTC/TRTCMainWindowController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ - (void)enterRoom {
420420
[self.trtcEngine startLocalPreview:videoView];
421421
[self.trtcEngine startLocalAudio];
422422
// 进房
423-
[self.trtcEngine enterRoom:param];
423+
[self.trtcEngine enterRoom:param appScene:TRTCAppSceneVideoCall];
424424
}
425425

426426
- (void)onEnterRoom:(NSInteger)elapsed{

Mac/TRTCDemo/TRTC/TRTCNewWindowController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ - (IBAction)enter:(id)sender {
112112
param.sdkAppId = _sdkAppID;
113113
param.userId = uid;
114114
param.userSig = token;
115-
param.roomId = self.roomidField.integerValue;
115+
param.roomId = (UInt32)self.roomidField.integerValue;
116116

117117
[self enterRoomWithParam:param];
118118
}

0 commit comments

Comments
 (0)