From 33b51c40ddd9750a19b2c6a6618fb22386f87cd7 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期五, 13 十一月 2020 18:12:21 +0800 Subject: [PATCH] 增加强制不查询编码信息配置 --- src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java | 91 +++++++++++++++++++++++++++++++++++++-------- 1 files changed, 74 insertions(+), 17 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java index 73fafc1..810feab 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java @@ -103,9 +103,14 @@ private String password; /** - * 浜戝彴鎺у埗 + * 浜戝彴绫诲瀷 */ private int PTZType; + + /** + * 浜戝彴绫诲瀷鎻忚堪瀛楃涓� + */ + private String PTZTypeText; /** * 鍦ㄧ嚎/绂荤嚎 @@ -138,6 +143,38 @@ */ private String ssrc; + /** + * 鏄惁鍚湁闊抽 + */ + private boolean hasAudio; + + /** + * 鏄惁姝e湪鎾斁 + */ + private boolean play; + + + public void setPTZType(int PTZType) { + this.PTZType = PTZType; + switch (PTZType) { + case 0: + this.PTZTypeText = "鏈煡"; + break; + case 1: + this.PTZTypeText = "鐞冩満"; + break; + case 2: + this.PTZTypeText = "鍗婄悆"; + break; + case 3: + this.PTZTypeText = "鍥哄畾鏋満"; + break; + case 4: + this.PTZTypeText = "閬ユ帶鏋満"; + break; + } + } + public String getChannelId() { return channelId; } @@ -152,14 +189,6 @@ public void setName(String name) { this.name = name; - } - - public int getStatus() { - return status; - } - - public void setStatus(int status) { - this.status = status; } public String getManufacture() { @@ -306,6 +335,26 @@ this.password = password; } + public int getPTZType() { + return PTZType; + } + + public String getPTZTypeText() { + return PTZTypeText; + } + + public void setPTZTypeText(String PTZTypeText) { + this.PTZTypeText = PTZTypeText; + } + + public int getStatus() { + return status; + } + + public void setStatus(int status) { + this.status = status; + } + public double getLongitude() { return longitude; } @@ -322,12 +371,12 @@ this.latitude = latitude; } - public int getPTZType() { - return PTZType; + public int getSubCount() { + return subCount; } - public void setPTZType(int PTZType) { - this.PTZType = PTZType; + public void setSubCount(int subCount) { + this.subCount = subCount; } public String getSsrc() { @@ -338,11 +387,19 @@ this.ssrc = ssrc; } - public int getSubCount() { - return subCount; + public boolean isHasAudio() { + return hasAudio; } - public void setSubCount(int subCount) { - this.subCount = subCount; + public void setHasAudio(boolean hasAudio) { + this.hasAudio = hasAudio; + } + + public boolean isPlay() { + return play; + } + + public void setPlay(boolean play) { + this.play = play; } } -- Gitblit v1.8.0