|
@@ -2,6 +2,7 @@ package com.syan.agora;
|
2
|
2
|
|
3
|
3
|
import android.view.SurfaceView;
|
4
|
4
|
|
|
5
|
+import com.facebook.react.bridge.ReadableMap;
|
5
|
6
|
import com.facebook.react.uimanager.SimpleViewManager;
|
6
|
7
|
import com.facebook.react.uimanager.ThemedReactContext;
|
7
|
8
|
import com.facebook.react.uimanager.annotations.ReactProp;
|
|
@@ -43,7 +44,7 @@ public class AgoraViewManage extends SimpleViewManager<AgoraVideoView> {
|
43
|
44
|
}
|
44
|
45
|
|
45
|
46
|
@ReactProp(name = "remoteUid")
|
46
|
|
- public void setRemoteUid(final AgoraVideoView agoraVideoView, int remoteUid) {
|
|
47
|
+ public void setRemoteUid(final AgoraVideoView agoraVideoView, final int remoteUid) {
|
47
|
48
|
AgoraManager.getInstance().setupRemoteVideo(remoteUid);
|
48
|
49
|
surfaceView = AgoraManager.getInstance().getSurfaceView(remoteUid);
|
49
|
50
|
//surfaceView.setVisibility(View.VISIBLE);
|