123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- package com.persagy.cameractl.utils;
- import java.util.List;
- import com.persagy.cameractl.model.Channel;
- /**
- * 摄像头对象
- * */
- public class Camera {
-
- // 通道号 1~32表示模拟通道,9000系列混合型DVR和NVR等设备的IP通道从33开始(即程序用的通道号为33+通道号-1)。回放、实时播放、控制使用
- public int channel = 1;
- // 码流类型 0:主码流 1:子码流 2:第三码流 参数不填,默认为子码流
- public int streamType = 1;
- // 命令类型,参见EnumTool.listSdkCommand
- public String command;
- // 开始还是停止 true 开始 false 停止
- public Boolean dwStop = true;
- // 调用硬件SDK时值范围1~100,默认50。指上仰下俯的速度、左转右转的速度、左上左下右上右下的水平速度
- public int speed = 50;
- // 摄像头IP
- public String cameraIp;
- // 摄像头服务端口号
- public int cameraPort = 8000;
- // 登录用户名
- public String userName = "admin";
- // 登录密码
- // pelco123
- public String password;
- // 开始时间,用于回放。格式:2021-03-01 15:02:11
- public String startDateStr;
- // 结束时间,用于回放。格式:2021-03-01 15:02:11
- public String endDateStr;
- // 通道ID
- public String cameraIndexCode;
-
- //窗口ID
- public int windowId;
- // 接口名称,方便客户端调用
- public String url;
- // 放入{_type:"get | post",interfaceId:"可为空",isToken:"1 | 0"}
- public String paramStr;
-
- //电视墙ID
- public int tvWallId=-1;
-
- /*
- * 布局编码,取值范围:
- * one(只有一个窗口)、left-up-one(六个窗口,左上角是大窗口)、
- * right-down-one(六个窗口,右下角是大窗口)、right-up-one(六个窗口,右上角是大窗口)、
- * left-down-one(六个窗口,左下角是大窗口)、multi-one(九宫格窗口)
- * */
- public String layoutCode;
-
- //视频墙数据源数组,每一项均为cameraIndexCode,数组的顺序和窗口顺序保持一致
- public String[] cameraIndexArr;
- /*------------------以下为大华特有的----------------*/
- // 级联号
- public String levelNo;
- // 垂直速度,大华特有,左上左下右上右下操作时使用,值范围1~8,默认8
- public int verSpeed = 8;
- // 8900平台接口所需要的参数
- public String jsonParam;
-
- public int isUseCustomCall=0;
-
- public CameraLoop[] cameraLoopArr;
-
- /** 轮巡时间 */
- public int nchanggeTime;
-
- /** 时间段ID,取值 1,2,3 */
- public int ntimeindex;
-
- /** 星期,从星期日开始0-6,全部为7 */
- public byte nweek;
- /** 窗口分割数量 */
- public int nwndnumber;
-
- /** 开始时间,距离:00:00 的秒数。 */
- public int ulstarttime;
-
- /** 结束时间距离:00:00 的秒数。 */
- public int ulendtime;
-
- /** 输出屏号 */
- public byte noutputscreenno;
-
- public List<Channel> channels;
- }
|