浏览代码

fix. ios uint

matrixbirds 5 年前
父节点
当前提交
769cd86566
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1
    1
      ios/RCTAgora/RCTAgoraVideoView.h
  2. 2
    2
      ios/RCTAgora/RCTAgoraVideoView.m

+ 1
- 1
ios/RCTAgora/RCTAgoraVideoView.h 查看文件

@@ -13,7 +13,7 @@
13 13
 
14 14
 @property (strong, nonatomic) AgoraRtcEngineKit *rtcEngine;
15 15
 @property (nonatomic) BOOL showLocalVideo;
16
-@property (nonatomic) NSInteger remoteUid;
16
+@property (nonatomic) NSUInteger remoteUid;
17 17
 @property (nonatomic) NSInteger renderMode;
18 18
 
19 19
 @end

+ 2
- 2
ios/RCTAgora/RCTAgoraVideoView.m 查看文件

@@ -36,10 +36,10 @@
36 36
   }
37 37
 }
38 38
 
39
--(void)setRemoteUid:(NSInteger)remoteUid {
39
+-(void)setRemoteUid:(NSUInteger)remoteUid {
40 40
   _remoteUid = remoteUid;
41 41
   AgoraRtcVideoCanvas *canvas = [[AgoraRtcVideoCanvas alloc] init];
42
-  if (_remoteUid > 0) {
42
+  if (_remoteUid != 0) {
43 43
     canvas.uid = _remoteUid;
44 44
     canvas.view = self;
45 45
     canvas.renderMode = _renderMode;