|
|
@@ -35,7 +35,7 @@ public class VideoCallingActivity extends TRTCBaseActivity implements View.OnCli
|
|
|
private RelativeLayout rl_maike;
|
|
|
private RelativeLayout rl_guaduan;
|
|
|
private RelativeLayout rl_qiehuan;
|
|
|
-private TextView tv_yuyin;
|
|
|
+ private TextView tv_yuyin;
|
|
|
private TRTCCloud mTRTCCloud;
|
|
|
private TXDeviceManager mTXDeviceManager;
|
|
|
private boolean mIsFrontCamera = true;
|
|
|
@@ -114,12 +114,12 @@ private TextView tv_yuyin;
|
|
|
trtcParams.userId = mUserId;
|
|
|
trtcParams.strRoomId = mRoomId;
|
|
|
trtcParams.userSig = userSig;
|
|
|
- trtcParams.privateMapKey=privateMapKey;
|
|
|
+ trtcParams.privateMapKey = privateMapKey;
|
|
|
|
|
|
if (mIsVideo.equals("true")) {
|
|
|
mTRTCCloud.startLocalPreview(mIsFrontCamera, mTXCVVLocalPreviewView);
|
|
|
tv_yuyin.setVisibility(View.GONE);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
tv_yuyin.setVisibility(View.VISIBLE);
|
|
|
}
|
|
|
mTRTCCloud.startLocalAudio(TRTCCloudDef.TRTC_AUDIO_QUALITY_SPEECH);
|
|
|
@@ -227,7 +227,7 @@ private TextView tv_yuyin;
|
|
|
@Override
|
|
|
public void onEnterRoom(long result) {
|
|
|
super.onEnterRoom(result);
|
|
|
- if(result>0){
|
|
|
+ if (result > 0) {
|
|
|
// mTRTCCloud.startPublishing(streamId, TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_BIG);
|
|
|
}
|
|
|
}
|