Skip to content

Commit

Permalink
关掉重力感应适配
Browse files Browse the repository at this point in the history
Change-Id: I382204ecf65b2f53445d03f47ff70f224d64f4ba
  • Loading branch information
SundoggyNew committed Apr 24, 2023
1 parent 5e1f61d commit 3cf541b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import java.util.HashMap;
import java.util.Map;

import static com.tencent.trtc.TRTCCloudDef.TRTC_GSENSOR_MODE_DISABLE;
import static com.tencent.trtc.TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_BIG;

/**
Expand Down Expand Up @@ -155,6 +156,7 @@ public void enterRoom(RoomKey roomKey) {
roomKey.getUserId(), roomKey.getUserSig(), roomKey.getStrRoomId(), "", "");
TRTCParams.role = TRTCCloudDef.TRTCRoleAnchor;
mRTCCloud.enableAudioVolumeEvaluation(300);
mRTCCloud.setGSensorMode(TRTC_GSENSOR_MODE_DISABLE);
mRTCCloud.setAudioRoute(TRTCCloudDef.TRTC_AUDIO_ROUTE_SPEAKER);
mRTCCloud.startLocalAudio(TRTCCloudDef.TRTC_AUDIO_QUALITY_SPEECH);
// 收到来电,开始监听 trtc 的消息
Expand Down

0 comments on commit 3cf541b

Please sign in to comment.