wxr
2024-09-27 acc8caee31c4be90bd38d1af18136b0e84f6fe94
HDL_ON/DAL/ThirdPartySdk/ESOnVideo.cs
@@ -137,35 +137,36 @@
                Shared.Application.Activity.StartActivity(intent);
            }
            else if (interphoneType == InterphoneType.FLVI.ToString())
            {
            //else if (interphoneType == InterphoneType.FLVI.ToString())
            //{
                intent = new Intent(Shared.Application.Activity, typeof(HDL_ON_Android.VideoActivity));
                intent.PutExtra("ESVideoUUID", mESVideoInfo.ESVideoUUID);
                intent.PutExtra("uuid", mESVideoInfo.uuid);
                intent.PutExtra("DeviceName", mESVideoInfo.DeviceName);
                intent.PutExtra("cmtID", mESVideoInfo.cmtID);
                intent.PutExtra("roomno", mESVideoInfo.roomno);
                intent.PutExtra("unitno", mESVideoInfo.unitno);
                intent.PutExtra("HomeID", PirSend.HomeId);
                intent.PutExtra("callId", mESVideoInfo.callId);
                intent.PutExtra("Type", 0);
            //    intent = new Intent(Shared.Application.Activity, typeof(HDL_ON_Android.VideoActivity));
            //    intent.PutExtra("ESVideoUUID", mESVideoInfo.ESVideoUUID);
            //    intent.PutExtra("uuid", mESVideoInfo.uuid);
            //    intent.PutExtra("DeviceName", mESVideoInfo.DeviceName);
            //    intent.PutExtra("cmtID", mESVideoInfo.cmtID);
            //    intent.PutExtra("roomno", mESVideoInfo.roomno);
            //    intent.PutExtra("unitno", mESVideoInfo.unitno);
            //    intent.PutExtra("HomeID", PirSend.HomeId);
            //    intent.PutExtra("callId", mESVideoInfo.callId);
            //    intent.PutExtra("Type", 0);
                Shared.Application.Activity.StartActivity(intent);
            }
            else if (interphoneType == InterphoneType.HDL.ToString())
            {
                //HDLLinphone 狄耐克
                HDLLinphone.Current.ShowESVideoMonitor(mESVideoInfo, InterphoneType.HDL.ToString());
            }
            else if (interphoneType == InterphoneType.FREEVIEW.ToString())
            {
                string sip_account = "sip:D" + mESVideoInfo.deviceCode + "@139.159.157.75:46000";
                mESVideoInfo.deviceSipAccount = sip_account;
                HDLLinphone.Current.ShowESVideoMonitor(mESVideoInfo, InterphoneType.FREEVIEW.ToString());
            }
            //    Shared.Application.Activity.StartActivity(intent);
            //}
            //else if (interphoneType == InterphoneType.HDL.ToString())
            //{
            //    //HDLLinphone 狄耐克
            //    HDLLinphone.Current.ShowESVideoMonitor(mESVideoInfo, InterphoneType.HDL.ToString());
            //}
            //else if (interphoneType == InterphoneType.FREEVIEW.ToString())
            //{
            //    string sip_account = "sip:D" + mESVideoInfo.deviceCode + "@139.159.157.75:46000";
            //    mESVideoInfo.deviceSipAccount = sip_account;
            //    HDLLinphone.Current.ShowESVideoMonitor(mESVideoInfo, InterphoneType.FREEVIEW.ToString());
            //}
            else
            {
                HDLUtils.WriteLine("未对接,不支持监视");
@@ -267,51 +268,28 @@
                Shared.Application.Activity.StartActivity(intent);
            }
            else if (interphoneType == InterphoneType.EZVIZ.ToString())
            {
                ((BaseActivity)Shared.Application.Activity).SetCamera(b =>
                {
                    if (b)
                    {
                        intent = new Android.Content.Intent();
                        var bundle = new Android.OS.Bundle();
                        //传递name参数为tinyphp
                        bundle.PutString("EzChildAccessToken", mESVideoInfo.Lc_AccessToken);
                        bundle.PutString("HdlToken", UserInfo.Current.LoginTokenString);
                        bundle.PutString("Url", OnAppConfig.Instance.RequestHttpsHost);
                        bundle.PutString("EzvizAppKey", "1aa98a90489b4838b966b57018b4b04b");
                        bundle.PutInt("Platform", 1);
                        bundle.PutString("HomeId", mESVideoInfo.HomeId);
                        bundle.PutString("DeviceSerial", mESVideoInfo.DeviceSerial);
                        intent.PutExtras(bundle);
                        intent.SetComponent(new Android.Content.ComponentName(Shared.Application.Activity, "com.videogo.MainActivity"));
                        Shared.Application.Activity.StartActivity(intent);
                    }
                });
                return;
            }
            else if (interphoneType == InterphoneType.HDL.ToString())
            {
                //HDL Linphone 狄耐克
            //else if (interphoneType == InterphoneType.HDL.ToString())
            //{
            //    //HDL Linphone 狄耐克
           
            }
            else if (interphoneType == InterphoneType.FLVI.ToString())
            {
                //待删减不必要参数
                intent = new Intent(Shared.Application.Activity, typeof(HDL_ON_Android.VideoActivity));
                intent.PutExtra("ESVideoUUID", mESVideoInfo.ESVideoUUID);
                intent.PutExtra("uuid", mESVideoInfo.uuid);
                intent.PutExtra("DeviceName", mESVideoInfo.DeviceName);
                intent.PutExtra("cmtID", mESVideoInfo.cmtID);
                intent.PutExtra("roomno", mESVideoInfo.roomno);
                intent.PutExtra("unitno", mESVideoInfo.unitno);
                intent.PutExtra("HomeID", PirSend.HomeId);
                intent.PutExtra("callId", mESVideoInfo.callId);
                intent.PutExtra("Type", 1);
            //}
            //else if (interphoneType == InterphoneType.FLVI.ToString())
            //{
            //    //待删减不必要参数
            //    intent = new Intent(Shared.Application.Activity, typeof(HDL_ON_Android.VideoActivity));
            //    intent.PutExtra("ESVideoUUID", mESVideoInfo.ESVideoUUID);
            //    intent.PutExtra("uuid", mESVideoInfo.uuid);
            //    intent.PutExtra("DeviceName", mESVideoInfo.DeviceName);
            //    intent.PutExtra("cmtID", mESVideoInfo.cmtID);
            //    intent.PutExtra("roomno", mESVideoInfo.roomno);
            //    intent.PutExtra("unitno", mESVideoInfo.unitno);
            //    intent.PutExtra("HomeID", PirSend.HomeId);
            //    intent.PutExtra("callId", mESVideoInfo.callId);
            //    intent.PutExtra("Type", 1);
                Shared.Application.Activity.StartActivity(intent);
            }
            //    Shared.Application.Activity.StartActivity(intent);
            //}
            else
            {
                HDLUtils.WriteLine("未支持的可视对讲类型");
@@ -875,7 +853,7 @@
        /// <summary>
        /// 丰林平台
        /// </summary>
        FLVI,
        //FLVI,
        /// <summary>
        /// 大华可视对讲平台
        /// </summary>
@@ -883,15 +861,15 @@
        /// <summary>
        /// 萤石猫眼呼叫
        /// </summary>
        EZVIZ,
        //EZVIZ,
        /// <summary>
        /// 狄耐克 HDL Linphone
        /// </summary>
        HDL,
        //HDL,
        /// <summary>
        /// 全视通对讲
        /// </summary>
        FREEVIEW,
        //FREEVIEW,
    }
}