using System;
|
|
namespace Shared.Phone.VideoPhone
|
{
|
public static class ESVideo
|
{
|
|
public static void InitESVideoSDK()
|
{
|
//ESVideo.InitESVideoSDK();
|
}
|
|
/// <summary>
|
/// 监控页面
|
/// </summary>
|
/// <param name="mESVideoInfo"></param>
|
public static void ShowESVideoMonitor(ESVideoInfo mESVideoInfo)
|
{
|
#if Android
|
Android.Content.Intent intent = new Android.Content.Intent(Application.Activity, typeof(GateWay.Droid.VideoActivity));
|
intent.PutExtra("DeviceName", mESVideoInfo.DeviceName);//室外机的名称,例,室外机
|
intent.PutExtra("ESRoomID", mESVideoInfo.ESRoomID);//当前用户的房间 ID
|
intent.PutExtra("ESVideoUUID", mESVideoInfo.ESVideoUUID);//室外机UUID,例:JJY000007FSEYX
|
intent.PutExtra("IsCollect", mESVideoInfo.IsCollect);//是否收藏
|
intent.PutExtra("RoomName", mESVideoInfo.RoomName);//房间命名,例 8栋1单元0801
|
intent.AddFlags(Android.Content.ActivityFlags.NewTask);
|
intent.PutExtra("Type", 0);//类型,0 监控,1反呼
|
Application.Activity.StartActivity(intent);
|
#endif
|
}
|
|
/// <summary>
|
/// 被呼叫页面
|
/// </summary>
|
/// <param name="mESVideoInfo"></param>
|
public static void ShowESvideoVideoIntercom(ESVideoInfo mESVideoInfo)
|
{
|
#if Android
|
Android.Content.Intent intent = new Android.Content.Intent(Application.Activity, typeof(GateWay.Droid.VideoActivity));
|
intent.PutExtra("DeviceName", mESVideoInfo.DeviceName);//室外机的名称,例,室外机
|
intent.PutExtra("ESRoomID", mESVideoInfo.ESRoomID);//当前用户的房间 ID
|
intent.PutExtra("ESVideoUUID", mESVideoInfo.ESVideoUUID);//室外机UUID,例:JJY000007FSEYX
|
intent.PutExtra("IsCollect", mESVideoInfo.IsCollect);//是否收藏
|
intent.PutExtra("RoomName", mESVideoInfo.RoomName);//房间命名,例 8栋1单元0801
|
intent.PutExtra("Type", 1);//类型,0 监控,1反呼
|
Application.Activity.StartActivity(intent);
|
#endif
|
}
|
}
|
|
public class ESVideoInfo
|
{
|
/// <summary>
|
/// 室外机的UUID
|
/// 例:JJY000007FSEYX
|
/// </summary>
|
public string ESVideoUUID = string.Empty;
|
/// <summary>
|
/// 当前用户的房间ID
|
/// 例:0801
|
/// </summary>
|
public int ESRoomID;
|
/// <summary>
|
/// 室外机的名称
|
/// 例:室外机
|
/// </summary>
|
public string DeviceName = string.Empty;
|
/// <summary>
|
/// 房间命名
|
/// 例:8栋1单元0801
|
/// </summary>
|
public string RoomName = string.Empty;
|
/// <summary>
|
/// 是否收藏
|
/// </summary>
|
public bool IsCollect;
|
|
}
|
|
|
}
|