Ver código fonte

fix. ios uint

matrixbirds 5 anos atrás
pai
commit
769cd86566

+ 1
- 1
ios/RCTAgora/RCTAgoraVideoView.h Ver arquivo

@@ -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 Ver arquivo

@@ -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;