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 | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs index 9c335d4..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 -- Gitblit v1.8.0