| | |
| | | /// <param name="mESVideoInfo"></param> |
| | | public void ShowESVideoIntercom(ESVideoInfo mESVideoInfo,string mInterphoneType) |
| | | { |
| | | if(this.mHDLCallVideoInfo != null) |
| | | { |
| | | if(this.mHDLCallVideoInfo.CallId == mESVideoInfo.callId) |
| | | { |
| | | return; |
| | | } |
| | | } |
| | | |
| | | InitLinphone(); |
| | | |
| | | HDLCallVideoInfo mHDLCallVideoInfo = new HDLCallVideoInfo(); |
| | |
| | | { |
| | | #if __IOS__ |
| | | //自研可视对讲 |
| | | Shared.IOS.HDLLinphoneSDK.HDLLinPhoneSDK.Instance().GotoHDLSRLinphoneIntercomVC(mHDLCallVideoInfo.DeviceName, mHDLCallVideoInfo.DeviceSipAccount); |
| | | HDLLinPhoneSDK.Instance().GotoHDLSRLinphoneIntercomVC(mHDLCallVideoInfo.DeviceName, mHDLCallVideoInfo.DeviceSipAccount); |
| | | #else |
| | | var intent = new Intent(Shared.Application.Activity, typeof(Com.Hdl.Hdllinphonesdk.Activity.HDLLinphoneReverseCallActivity)); |
| | | if (mHDLCallVideoInfo != null) |
| | |
| | | |
| | | #if __IOS__ |
| | | |
| | | Shared.IOS.HDLLinphoneSDK.HDLLinPhoneSDK.Instance().GotoHDLLinphoneIntercomVC(mHDLCallVideoInfo.DeviceName); |
| | | HDLLinPhoneSDK.Instance().GotoHDLLinphoneIntercomVC(mHDLCallVideoInfo.DeviceName); |
| | | |
| | | #else |
| | | var intent = new Intent(Shared.Application.Activity, typeof(Com.Hdl.Hdllinphonesdk.Activity.HDLLinphoneIntercomActivity)); |
| | |
| | | public void OnAnswerAction() |
| | | { |
| | | //showToast("接听"); |
| | | HDLLinphoneKit.Instance.SetMediaPlayerLooping(false); |
| | | hdlLinphone.HDLUpdateCallStatus(CallStatusType.RECEIVED, InterphoneType.HDL); |
| | | } |
| | | /// <summary> |
| | |
| | | public void OnRejectCallAction() |
| | | { |
| | | //showToast("拒接"); |
| | | HDLLinphoneKit.Instance.SetMediaPlayerLooping(false); |
| | | hdlLinphone.HDLUpdateCallStatus(CallStatusType.REJECT, InterphoneType.HDL); |
| | | hdlLinphone.HDLRejectCallIn(); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | public void OnIncomingCall(string userName) |
| | | { |
| | | Utlis.WriteLine("OnIncomingCall :" + userName); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 拒接事件 |
| | | /// 全部挂断 |
| | | /// </summary> |
| | | public void OnCallAllRejection() |
| | | { |
| | | HDLLinphoneKit.Instance.SetMediaPlayerLooping(false); |
| | | hdlLinphone.HDLUpdateCallStatus(CallStatusType.REJECT, InterphoneType.HDL); |
| | | hdlLinphone.HDLRejectCallIn(); |
| | | } |
| | | |
| | | public void OnMissedCallsAction() |
| | | { |
| | | HDLLinphoneKit.Instance.SetMediaPlayerLooping(false); |
| | | hdlLinphone.HDLUpdateCallStatus(CallStatusType.MISSED, InterphoneType.HDL); |
| | | } |
| | | } |
| | | |
| | |
| | | /// </summary> |
| | | public override void OnAnswerAction() |
| | | { |
| | | Other.SoundPlayer.Ins.StopSound(); |
| | | hdlLinphone.HDLUpdateCallStatus(CallStatusType.RECEIVED, InterphoneType.HDL); |
| | | } |
| | | |
| | |
| | | /// </summary> |
| | | public override void OnRejectCallAction() |
| | | { |
| | | Other.SoundPlayer.Ins.StopSound(); |
| | | hdlLinphone.HDLUpdateCallStatus(CallStatusType.REJECT, InterphoneType.HDL); |
| | | } |
| | | |