namespace EC.Util.CameraSDK;
public abstract class ICameraSDK
{
#region Fields
public CameraInfo CameraInfo { get; }
#endregion Fields
public ICameraSDK(CameraInfo cameraInfo)
{
CameraInfo = cameraInfo;
}
#region Base Method
///
/// 初始化资源
///
///
public abstract bool Init();
///
/// 释放资源
///
///
public abstract bool Destory();
///
/// 连接是否成功
///
///
public abstract bool ConnectSuccess();
///
/// 构建异常
///
internal abstract void BuildException();
#endregion Base Method
#region Ptz Method
///
/// 获取 ptz
///
///
public abstract PtzInfo GetPtzInfo();
///
/// 获取 ptz
///
///
public abstract bool TryGetPtzInfo(out PtzInfo ptzInfo);
public abstract bool PtzMove(int cmd, int stop, int speed);
public abstract bool PtzPreset(int cmd, int presetId);
#endregion Ptz Method
#region Video Method
public abstract void StartPlay(IntPtr hwnd);
public abstract void StopPlay();
public abstract bool IsPlaying();
#endregion Video Method
}