From c11559375eb2163a00be80030dde126c76cff108 Mon Sep 17 00:00:00 2001 From: zher52 Date: Thu, 10 Feb 2022 17:34:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E6=88=BF=E9=97=B4=E5=9B=9E?= =?UTF-8?q?=E8=B0=83=E5=BC=82=E6=AD=A5=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trtc/videocall/VideoCallingActivity.java | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/android/java/com/tencent/trtc/videocall/VideoCallingActivity.java b/src/android/java/com/tencent/trtc/videocall/VideoCallingActivity.java index ea6b26e..881213e 100644 --- a/src/android/java/com/tencent/trtc/videocall/VideoCallingActivity.java +++ b/src/android/java/com/tencent/trtc/videocall/VideoCallingActivity.java @@ -201,14 +201,6 @@ public class VideoCallingActivity extends TRTCBaseActivity implements View.OnCli mRemoteViewList.get(0).changeUser(mTRTCCloud, mUserList.get(0)); mTRTCCloud.enterRoom(trtcParams, TRTCCloudDef.TRTC_APP_SCENE_VIDEOCALL); - JSONObject object = new JSONObject(); - try { - object.put("room",mRoomId); - object.put("userId",mUserId); - CordovaEventKit.kit.fireEvent("onLayoutChangeMessage",object); - } catch (JSONException e) { - e.printStackTrace(); - } } @Override @@ -355,6 +347,19 @@ public class VideoCallingActivity extends TRTCBaseActivity implements View.OnCli } } + + @Override + public void onEnterRoom(int result){ + JSONObject object = new JSONObject(); + try { + object.put("room",mRoomId); + object.put("userId",mUserId); + CordovaEventKit.kit.fireEvent("onLayoutChangeMessage",object); + } catch (JSONException e) { + e.printStackTrace(); + } + } + @Override public void onError(int errCode, String errMsg, Bundle extraInfo) { Log.d(TAG, "sdk callback onError");