TRTC录音调用时机修改(考虑上麦就闭麦了的情况)
This commit is contained in:
@@ -973,7 +973,9 @@ public class TRTCEngineAdapter extends BaseAdapterImpl {
|
||||
public int setClientRole(int role) {
|
||||
if (role == CLIENT_ROLE_BROADCASTER) {
|
||||
userRole = TRTCRoleAnchor;
|
||||
trtcCloud.startLocalAudio();
|
||||
if (!TRtcEngineManager.get().isMute){
|
||||
trtcCloud.startLocalAudio();
|
||||
}
|
||||
} else if (role == CLIENT_ROLE_AUDIENCE) {
|
||||
userRole = TRTCRoleAudience;
|
||||
trtcCloud.stopLocalAudio();
|
||||
|
Reference in New Issue
Block a user