更新时间:2019-11-20
视频通话中,通话的一方发起视频通话切换为音频通话。
视频通话已建立,主被叫正在通话中。
通话中,主被叫双方均可以发起视频转音频操作。
//Java code public boolean delVideo() { int result = tsdkCall.delVideo(); if (result != 0) { LogUtil.e(TAG, "delVideo return failed, result = " + result); return false; } setCallStatus(CallConstant.CallStatus.AUDIO_CALLING); return true; } |
//Java code public void onEvtCloseVideoInd(TsdkCall call){ if (null == call) { Log.e(TAG, "onCallDelVideo tupCall is null"); return; } Session callSession = getCallSessionByCallID(call.getCallInfo().getCallId()); if (callSession == null) { Log.e(TAG, "call session obj is null"); return; } callSession.setCallStatus(CallConstant.CallStatus.AUDIO_CALLING); //Clear video data VideoMgr.getInstance().clearCallVideo(); if (null != mCallNotification) { CallInfo callInfo = getCallInfo(call); mCallNotification.onCallEventNotify(CallConstant.CallEvent.CLOSE_VIDEO, callInfo); } if (callSession.isVideoHold()) { callSession.holdCall(); } } |
无。