From 9cc8fd11b13813adbdd3c6c31554e5c0bebf4026 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期五, 21 八月 2020 19:53:49 +0800 Subject: [PATCH] 发布到商店的版本 --- 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