Browse Source

fix. ios uint

matrixbirds 5 years ago
parent
commit
769cd86566
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      ios/RCTAgora/RCTAgoraVideoView.h
  2. 2
    2
      ios/RCTAgora/RCTAgoraVideoView.m

+ 1
- 1
ios/RCTAgora/RCTAgoraVideoView.h View File

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

+ 2
- 2
ios/RCTAgora/RCTAgoraVideoView.m View File

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