From 652243206427f35a256400a149a1734085824cb9 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期三, 02 九月 2020 17:35:03 +0800 Subject: [PATCH] 2020-09-02-4 --- ZigbeeApp/GateWay.Droid/FengLinVideo/Forms/ReverseCallFragment.cs | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ZigbeeApp/GateWay.Droid/FengLinVideo/Forms/ReverseCallFragment.cs b/ZigbeeApp/GateWay.Droid/FengLinVideo/Forms/ReverseCallFragment.cs index 9031eaf..4d01cc3 100755 --- a/ZigbeeApp/GateWay.Droid/FengLinVideo/Forms/ReverseCallFragment.cs +++ b/ZigbeeApp/GateWay.Droid/FengLinVideo/Forms/ReverseCallFragment.cs @@ -52,7 +52,7 @@ mView = inflater.Inflate(Resource.Layout.fragment_call, container, false); IniView(); - + ReverseCall(param); return mView; } @@ -260,8 +260,17 @@ { if (v.Equals(rlCall)) { - //TimeStarts(); - ReverseCall(param); + //鎺ユ敹鏉ョ數 + if (mPhone != null) + { + if (mPhone.IsRinging) + { + string UserData = "user text"; + //娉ㄦ剰锛歊equestAudio 璇锋眰瀵规柟闊抽锛孯equestVideo璇锋眰瀵规柟瑙嗛 SendAudio鍙戦�佹湰鍦伴煶棰� SendVideo 鍙戦�佹湰鍦拌棰� 涓�鑸棬鍙d笉鎺ユ敹鍒拌棰戯紝鎵�浠ユ渶濂借缃�0锛屽噺灏戞祦閲忔秷鑰� + string param = string.Format("RequestAudio=1\r\n" + "RequestVideo=1\r\n" + "SendAudio=1\r\n" + "SendVideo=1r\n" + "UserData=%s\r\n", UserData); + mPhone.AcceptRing(param); + } + } rlCall.Visibility = ViewStates.Gone; } else if (v.Equals(rlHangup)) -- Gitblit v1.8.0