Skip to content

Commit

Permalink
修改startLocalAudio时机。
Browse files Browse the repository at this point in the history
Change-Id: I4a01a0836a3b92994a7370cc7b30f74d11697cdc
  • Loading branch information
SundoggyNew committed May 6, 2023
1 parent 74551d3 commit 66f87f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ public void enterRoom(RoomKey roomKey) {
mRTCCloud.enableAudioVolumeEvaluation(300);
mRTCCloud.setGSensorMode(TRTC_GSENSOR_MODE_DISABLE);
mRTCCloud.setAudioRoute(TRTCCloudDef.TRTC_AUDIO_ROUTE_SPEAKER);
mRTCCloud.startLocalAudio(TRTCCloudDef.TRTC_AUDIO_QUALITY_SPEECH);
// 收到来电,开始监听 trtc 的消息
mRTCCloud.setListener(mRTCCloudListener);
mRTCCloud.muteLocalAudio(true);
Expand Down Expand Up @@ -208,6 +207,7 @@ public void closeCamera() {
}

public void sendStreamToServer() {
mRTCCloud.startLocalAudio(TRTCCloudDef.TRTC_AUDIO_QUALITY_SPEECH);
mRTCCloud.muteLocalAudio(false);
mRTCCloud.muteLocalVideo(0, false);
}
Expand Down

0 comments on commit 66f87f4

Please sign in to comment.