From fbdad00cdb294a857f55e33b2dd92c61dc37475c Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期二, 13 十月 2020 18:55:42 +0800 Subject: [PATCH] 修复无音频通道开启通道音频后无法播放的bug 修复点播接口真的收到视频后回复 --- src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 44 insertions(+), 1 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..00bd995 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; /** * 鍦ㄧ嚎/绂荤嚎 @@ -137,6 +142,11 @@ * 娴佸敮涓�缂栧彿锛屽瓨鍦ㄨ〃绀烘鍦ㄧ洿鎾� */ private String ssrc; + + /** + * 鏄惁鍚湁闊抽 + */ + private boolean hasAudio; public String getChannelId() { return channelId; @@ -328,6 +338,27 @@ 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 getPTZTypeText() { + return PTZTypeText; } public String getSsrc() { @@ -345,4 +376,16 @@ public void setSubCount(int subCount) { this.subCount = subCount; } + + public void setPTZTypeText(String PTZTypeText) { + this.PTZTypeText = PTZTypeText; + } + + public boolean isHasAudio() { + return hasAudio; + } + + public void setHasAudio(boolean hasAudio) { + this.hasAudio = hasAudio; + } } -- Gitblit v1.8.0