| | |
| | | using System; |
| | | using Android.Content; |
| | | //using System; |
| | | //#if __IOS__ |
| | | //using Shared.IOS.ESVideoOnSDK; |
| | | //using UIKit; |
| | | //using Foundation; |
| | | //#else |
| | | |
| | | namespace HDL_ON.FengLinVideo |
| | | { |
| | | public class ESOnVideo |
| | | { |
| | | /// <summary> |
| | | /// 丰林可视对讲 |
| | | /// </summary> |
| | | private static ESOnVideo m_Current = null; |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public static ESOnVideo Current |
| | | { |
| | | get |
| | | { |
| | | if (m_Current == null) |
| | | { |
| | | m_Current = new ESOnVideo(); |
| | | } |
| | | return m_Current; |
| | | } |
| | | } |
| | | //using Android.Content; |
| | | |
| | | public void InitESVideoSDK() |
| | | { |
| | | //ESVideo. |
| | | } |
| | | //#endif |
| | | //namespace HDL_ON.FengLinVideo |
| | | //{ |
| | | // public class ESOnVideo |
| | | // { |
| | | // /// <summary> |
| | | // /// 丰林可视对讲 |
| | | // /// </summary> |
| | | // private static ESOnVideo m_Current = null; |
| | | // /// <summary> |
| | | // /// |
| | | // /// </summary> |
| | | // public static ESOnVideo Current |
| | | // { |
| | | // get |
| | | // { |
| | | // if (m_Current == null) |
| | | // { |
| | | // m_Current = new ESOnVideo(); |
| | | // } |
| | | // return m_Current; |
| | | // } |
| | | // } |
| | | |
| | | /// <summary> |
| | | /// 监控页面 |
| | | /// </summary> |
| | | /// <param name="mESVideoInfo"></param> |
| | | public void ShowESVideoMonitor(ESVideoInfo mESVideoInfo) |
| | | { |
| | | // public void InitESVideoSDK() |
| | | // { |
| | | // //ESVideo. |
| | | // } |
| | | |
| | | Intent 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", mESVideoInfo.HomeID); |
| | | intent.PutExtra("callId", mESVideoInfo.callId); |
| | | intent.PutExtra("Type", 0); |
| | | Shared.Application.Activity.StartActivity(intent); |
| | | // /// <summary> |
| | | // /// 监控页面 |
| | | // /// </summary> |
| | | // /// <param name="mESVideoInfo"></param> |
| | | // public void ShowESVideoMonitor(ESVideoInfo mESVideoInfo) |
| | | // { |
| | | |
| | | } |
| | | // Intent 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", mESVideoInfo.HomeID); |
| | | // intent.PutExtra("callId", mESVideoInfo.callId); |
| | | // intent.PutExtra("Type", 0); |
| | | // Shared.Application.Activity.StartActivity(intent); |
| | | |
| | | /// <summary> |
| | | /// 被呼叫页面 |
| | | /// </summary> |
| | | /// <param name="mESVideoInfo"></param> |
| | | public void ShowESvideoVideoIntercom(ESVideoInfo mESVideoInfo) |
| | | { |
| | | // } |
| | | |
| | | Intent 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", mESVideoInfo.HomeID); |
| | | intent.PutExtra("callId", mESVideoInfo.callId); |
| | | intent.PutExtra("Type", 1); |
| | | Shared.Application.Activity.StartActivity(intent); |
| | | } |
| | | // /// <summary> |
| | | // /// 被呼叫页面 |
| | | // /// </summary> |
| | | // /// <param name="mESVideoInfo"></param> |
| | | // public void ShowESvideoVideoIntercom(ESVideoInfo mESVideoInfo) |
| | | // { |
| | | |
| | | /// <summary> |
| | | /// 测试方法 |
| | | /// </summary> |
| | | /// <param name="isMonitor"></param> |
| | | public void Test(bool isMonitor = true) |
| | | { |
| | | ESVideoInfo eSVideoInfo = new ESVideoInfo() |
| | | { |
| | | DeviceName = "室外机88", |
| | | ESVideoUUID = "JJY000019VPLLF", |
| | | }; |
| | | if (isMonitor) |
| | | { |
| | | ShowESVideoMonitor(eSVideoInfo); |
| | | } |
| | | else |
| | | { |
| | | ShowESvideoVideoIntercom(eSVideoInfo); |
| | | } |
| | | // Intent 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", mESVideoInfo.HomeID); |
| | | // intent.PutExtra("callId", mESVideoInfo.callId); |
| | | // intent.PutExtra("Type", 1); |
| | | // Shared.Application.Activity.StartActivity(intent); |
| | | // } |
| | | |
| | | } |
| | | } |
| | | // /// <summary> |
| | | // /// 测试方法 |
| | | // /// </summary> |
| | | // /// <param name="isMonitor"></param> |
| | | // public void Test(bool isMonitor = true) |
| | | // { |
| | | // ESVideoInfo eSVideoInfo = new ESVideoInfo() |
| | | // { |
| | | // DeviceName = "室外机88", |
| | | // ESVideoUUID = "JJY000019VPLLF", |
| | | // }; |
| | | // if (isMonitor) |
| | | // { |
| | | // ShowESVideoMonitor(eSVideoInfo); |
| | | // } |
| | | // else |
| | | // { |
| | | // ShowESvideoVideoIntercom(eSVideoInfo); |
| | | // } |
| | | |
| | | public class ESVideoInfo |
| | | { |
| | | /// <summary> |
| | | /// 室外机的UUID |
| | | /// 例:JJY000007FSEYX |
| | | /// </summary> |
| | | public string ESVideoUUID = string.Empty; |
| | | /// <summary> |
| | | /// 室外机的名称 |
| | | /// 例:室外机 |
| | | /// </summary> |
| | | public string DeviceName = string.Empty; |
| | | /// <summary> |
| | | /// 丰林请求的唯一id |
| | | /// </summary> |
| | | public string uuid; |
| | | /// <summary> |
| | | /// 丰林社区id |
| | | /// </summary> |
| | | public string cmtID; |
| | | /// <summary> |
| | | /// 丰林房间号 |
| | | /// </summary> |
| | | public string roomno; |
| | | /// <summary> |
| | | /// 丰林楼栋号 |
| | | /// </summary> |
| | | public string unitno; |
| | | /// <summary> |
| | | /// 丰林住宅Id |
| | | /// </summary> |
| | | public string HomeID; |
| | | /// <summary> |
| | | /// 呼叫记录Id |
| | | /// </summary> |
| | | public string callId; |
| | | // } |
| | | // } |
| | | |
| | | } |
| | | } |
| | | // public class ESVideoInfo |
| | | // { |
| | | // /// <summary> |
| | | // /// 室外机的UUID |
| | | // /// 例:JJY000007FSEYX |
| | | // /// </summary> |
| | | // public string ESVideoUUID = string.Empty; |
| | | // /// <summary> |
| | | // /// 室外机的名称 |
| | | // /// 例:室外机 |
| | | // /// </summary> |
| | | // public string DeviceName = string.Empty; |
| | | // /// <summary> |
| | | // /// 丰林请求的唯一id |
| | | // /// </summary> |
| | | // public string uuid; |
| | | // /// <summary> |
| | | // /// 丰林社区id |
| | | // /// </summary> |
| | | // public string cmtID; |
| | | // /// <summary> |
| | | // /// 丰林房间号 |
| | | // /// </summary> |
| | | // public string roomno; |
| | | // /// <summary> |
| | | // /// 丰林楼栋号 |
| | | // /// </summary> |
| | | // public string unitno; |
| | | // /// <summary> |
| | | // /// 丰林住宅Id |
| | | // /// </summary> |
| | | // public string HomeID; |
| | | // /// <summary> |
| | | // /// 呼叫记录Id |
| | | // /// </summary> |
| | | // public string callId; |
| | | |
| | | // } |
| | | //} |