From dd922032a3301ae960f4968eaf33ca14768c0ed1 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期三, 11 九月 2024 11:42:03 +0800 Subject: [PATCH] V2.6.0金茂热水器,金茂光伏测试通过的版本 --- HDL_ON/Common/HDLCommon.cs | 43 +++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 41 insertions(+), 2 deletions(-) diff --git a/HDL_ON/Common/HDLCommon.cs b/HDL_ON/Common/HDLCommon.cs index 0d7c969..2103bb9 100644 --- a/HDL_ON/Common/HDLCommon.cs +++ b/HDL_ON/Common/HDLCommon.cs @@ -7,7 +7,10 @@ using HDL_ON.Entity; using System.Threading; using HDL_ON.DriverLayer; - +#if __IOS__ +using Other; +using Shared.IOS.HDLLinphoneSDK; +#endif namespace HDL_ON { /// <summary> @@ -373,7 +376,7 @@ #if __ANDROID__ - Com.Hdl.Hdllinphonesdk.HDLLinphoneKit.Instance.MissedCallsTime = 10; + Com.Hdl.Hdllinphonesdk.HDLLinphoneKit.Instance.MissedCallsTime = 30; Com.Hdl.Hdllinphonesdk.HDLLinphoneKit.Instance.SetMediaPlayerLooping(true); Com.Hdl.Hdllinphonesdk.HDLLinphoneKit.Instance.PlayRingtone(); new Thread(() => @@ -394,6 +397,41 @@ catch (Exception ex) { MainPage.Log("error", "鑷爺鍙瀵硅閾冨0鎾斁寮傚父:" + ex.Message); + } + }) + { IsBackground = true }.Start(); + +#elif __IOS__ + SoundPlayer.Ins.PlaySound(); + new Thread(() => { + int count = 0; + while (true) + { + if (SoundPlayer.Ins.player == null) + { + break; + } + if (!SoundPlayer.Ins.player.Playing) + { + break; + } + System.Threading.Thread.Sleep(1000); + count++; + MainPage.Log("linphone 鍛煎彨璁℃椂锛�" + count); + if (count > 29) + { + SoundPlayer.Ins.StopSound(); + Application.RunOnMainThread(() => { + try + { + HDLLinPhoneSDK.Instance().HideIntercomeVC(); + }catch(Exception ex) + { + MainPage.Log("error", "ios linphone 鍛煎彨瓒呮椂鍏抽棴鐣岄潰寮傚父锛�" + ex.Message); + } + }); + break; + } } }) { IsBackground = true }.Start(); @@ -499,6 +537,7 @@ switch (UserInfo.Current.AccountString) { case "464027401@qq.com": + case "649362315@qq.com": case "13580507523": case "15626203746": case "18316672920": -- Gitblit v1.8.0