更新時間:2019-11-20
視頻通話中,通話的一方發(fā)起視頻通話切換為音頻通話。
視頻通話已建立,主被叫正在通話中。
通話中,主被叫雙方均可以發(fā)起視頻轉(zhuǎn)音頻操作。
//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(); } } |
無。