| | |
| | | } |
| | | |
| | | #if __ANDROID__ |
| | | try |
| | | { |
| | | //安卓如果设置了静音,不能响铃 |
| | | if (Com.Hdl.Hdllinphonesdk.HDLLinphoneKit.Instance.AudioManager.RingerMode.ToString().ToLower() == "normal") |
| | | { |
| | | Com.Hdl.Hdllinphonesdk.HDLLinphoneKit.Instance.MissedCallsTime = 30; |
| | | Com.Hdl.Hdllinphonesdk.HDLLinphoneKit.Instance.SetMediaPlayerLooping(true); |
| | | Com.Hdl.Hdllinphonesdk.HDLLinphoneKit.Instance.PlayRingtone(); |
| | |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | |
| | | } |
| | | }catch(Exception ex) |
| | | { |
| | | MainPage.Log("Error", $"安卓可视对讲响铃异常:{ex.StackTrace}"); |
| | | } |
| | | #elif __IOS__ |
| | | SoundPlayer.Ins.PlaySound(); |
| | | new Thread(() => { |