You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
984 B
52 lines
984 B
namespace EC.Helper.CameraSDK;
|
|
|
|
public abstract class ICameraSDK
|
|
{
|
|
#region Attr
|
|
|
|
protected CameraInfo CameraInfo { get; set; }
|
|
|
|
#endregion Attr
|
|
|
|
public ICameraSDK(CameraInfo cameraInfo)
|
|
{
|
|
CameraInfo = cameraInfo;
|
|
}
|
|
|
|
#region Base Method
|
|
|
|
/// <summary>
|
|
/// 初始化资源
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public abstract bool Init();
|
|
|
|
/// <summary>
|
|
/// 释放资源
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public abstract bool Destory();
|
|
|
|
/// <summary>
|
|
/// 连接是否成功
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public abstract bool ConnectSuccess();
|
|
|
|
/// <summary>
|
|
/// 处理异常
|
|
/// </summary>
|
|
public abstract void BuildException();
|
|
|
|
#endregion Base Method
|
|
|
|
#region Main Method
|
|
|
|
/// <summary>
|
|
/// 获取 ptz
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public abstract bool GetPtzInfo(out PtzInfo ptzInfo);
|
|
|
|
#endregion Main Method
|
|
}
|