From c2cae389c932a9ab2c03d67d0276376655f26343 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期二, 06 八月 2024 14:17:04 +0800
Subject: [PATCH] OnPro(安卓/IOS)可视对讲 TCP UDP连接选择 ;自动切换服务器

---
 HDL_ON/UI/UI2/1-HomePage/HomePage.cs |   36 +++++++++++++++++++++++++-----------
 1 files changed, 25 insertions(+), 11 deletions(-)

diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
index 9c4f0e5..72a1cdf 100644
--- a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
+++ b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
@@ -1,13 +1,7 @@
 锘縰sing System;
 using System.Collections.Generic;
-using System.Text;
-using HDL_ON.DAL;
-using HDL_ON.DAL.Server;
-using HDL_ON.DriverLayer;
 using HDL_ON.Entity;
 using HDL_ON.UI.CSS;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Linq;
 using Shared;
 
 namespace HDL_ON.UI
@@ -557,11 +551,31 @@
 #if DEBUG
                 btnResidenceName.MouseUpEventHandler = (envent, ee) => {
                     MainPage.Log("sss");
-                    new System.Threading.Thread(async() =>
-                    {
-                        await Common.AliyunLog.AliyunLogClient.PostLogs("鍛婅娴嬭瘯", "娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅");
-                    })
-                    { IsBackground = true }.Start();
+
+#if __ANDROID__
+                    //HDLLinphoneKit.Instance.MediaPlayerLooping(true);
+                    Com.Hdl.Hdllinphonesdk.HDLLinphoneKit.Instance.PlayRingtone();
+#elif __IOS__
+
+                    //if (isPlay)
+                    //{
+                    //    isPlay = false;
+                    //    soundPlayer.StopSound();
+                    //}
+                    //else
+                    //{
+                    //    isPlay = true;
+                    //    soundPlayer.PlaySound();
+                    //}
+
+#endif
+                    //PlaySystemRingtone playSystemRingtone = new PlaySystemRingtone();
+                    //playSystemRingtone.Play();
+                    //new System.Threading.Thread(async() =>
+                    //{
+                    //    await Common.AliyunLog.AliyunLogClient.PostLogs("鍛婅娴嬭瘯", "娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅娴嬭瘯淇℃伅");
+                    //})
+                    //{ IsBackground = true }.Start();
                 };
 #endif
             }

--
Gitblit v1.8.0