From dc9a1b15bb69227e19afc070adf58156a362d2a2 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期一, 30 九月 2024 17:07:58 +0800
Subject: [PATCH] 安卓可视对讲响铃,

---
 HDL_ON/UI/UI2/1-HomePage/HomePage.cs |   26 +++++++++++++++++++-------
 1 files changed, 19 insertions(+), 7 deletions(-)

diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
index 48d096f..9cea12b 100644
--- a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
+++ b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
@@ -564,21 +564,33 @@
                 #endregion
 
 #if DEBUG
+                //bool isPlay= false;
                 btnResidenceName.MouseUpEventHandler = (envent, ee) =>
                 {
 #if __ANDROID__
-                    Com.Hdl.Hdllinphonesdk.HDLLinphoneKit.Instance.PlayRingtone();
+                    //Com.Hdl.Hdllinphonesdk.HDLLinphoneKit.Instance.PlayRingtone();
+                    //Android.Media.AudioManager audioManager = (Android.Media.AudioManager)Application.Activity.GetSystemService(Android.Content.Context.AudioService);
+                    //Console.WriteLine(audioManager.RingerMode);
+                    //try
+                    //{
+                    //    var ddd = Com.Hdl.Hdllinphonesdk.HDLLinphoneKit.Instance.AudioManager.RingerMode ;
+                    //    Console.WriteLine(ddd + ";;;;ddd");//	ddd	Vibrate	闇囧姩 銆併��	ddd	Silent	闈欓煶//	ddd	Normal	
+                    //}
+                    //catch(Exception e)
+                    //{
+                    //    Console.WriteLine("dddd"+e.StackTrace);
+                    //}
 #elif __IOS__
 
                     //if (isPlay)
                     //{
                     //    isPlay = false;
-                    //    soundPlayer.StopSound();
+                    //    Other.SoundPlayer.Ins.StopSound();
                     //}
                     //else
                     //{
                     //    isPlay = true;
-                    //    soundPlayer.PlaySound();
+                    //    Other.SoundPlayer.Ins.PlaySound();
                     //}
 
 #endif
@@ -1006,10 +1018,10 @@
                     //    continue;
                     //}
                     //else
-                    {
-                        if (!function.collect&& function.spk != SPK.InverterJinmao)
-                            continue;
-                    }
+                    //{
+                    if (!function.collect&& function.spk != SPK.InverterJinmao)
+                        continue;
+                    //}
                     if (index % 2 == 0)
                     {
                         rowView = new FrameLayout()

--
Gitblit v1.8.0