From 9e5babf9db52e64bdae60137be7696e56241fca6 Mon Sep 17 00:00:00 2001
From: xingzilong <xingzilong@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期五, 18 八月 2017 18:12:17 +0800
Subject: [PATCH] H264 NALU解析  并在RTSPServer判断

---
 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/DeviceQueryItem.java |  289 +++++++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 259 insertions(+), 30 deletions(-)

diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/DeviceQueryItem.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/DeviceQueryItem.java
index 34ea2dd..00be9c0 100644
--- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/DeviceQueryItem.java
+++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/DeviceQueryItem.java
@@ -4,73 +4,302 @@
 public class DeviceQueryItem {
 
 	// 璁惧涓婚敭
-	private String id;
-	// 鍏徃涓婚敭
+	private String deviceId;
+	// 璁惧鎵�灞炲叕鍙�
 	private String companyId;
-	// 璁惧鍦扮偣
+	// 璁惧鍚嶇О
 	private String deviceName;
-	// 璁惧鎺堟潈鐮�
-	private String authorizationId;
+	// 璁惧绫诲瀷锛歝amera1, camera2, main_device
+	private String type;
+	// 璁惧鍦板潃
+	private String installAddress;
+	// 瀛︽牎鍚嶇О
+	private String schoolName;
+	// 鍝佺墝
+	private String brandId;
+	// IP
+	private String ip;
+	// 绔彛
+	private String port;
+	// 鍒嗚鲸鐜�
+	private String resolutionId;
+	// 鐢ㄦ埛鍚�
+	private String username;
+	// 瀵嗙爜
+	private String password;
+	// 閫氳鍗忚
+	private String protocolId;
+	// 搴忓垪鍙�
+	private String sn;
+	// 鎵�灞炶澶噄d
+	private String belongId;
+	// 鍚嶇О
+	private String brandName;
+	// 鍚嶇О
+	private String resolution;
+	// 鍚嶇О
+	private String protocol;
 
 	/**
 	 * Get 璁惧涓婚敭
 	 */
-	public String getId() {
-		return id;
-	}
-	
-	/**
-	 * Set 璁惧涓婚敭
-	 */
-	public void setId(String id) {
-		this.id = id;
+	public String getDeviceId() {
+		return deviceId;
 	}
 
 	/**
-	 * Get 鍏徃涓婚敭
+	 * Set 璁惧涓婚敭
+	 */
+	public void setDeviceId(String deviceId) {
+		this.deviceId = deviceId;
+	}
+
+	/**
+	 * Get 璁惧鎵�灞炲叕鍙�
 	 */
 	public String getCompanyId() {
 		return companyId;
 	}
-	
+
 	/**
-	 * Set 鍏徃涓婚敭
+	 * Set 璁惧鎵�灞炲叕鍙�
 	 */
 	public void setCompanyId(String companyId) {
 		this.companyId = companyId;
 	}
 
 	/**
-	 * Get 璁惧鍦扮偣
+	 * Get 璁惧鍚嶇О
 	 */
 	public String getDeviceName() {
 		return deviceName;
 	}
-	
+
 	/**
-	 * Set 璁惧鍦扮偣
+	 * Set 璁惧鍚嶇О
 	 */
 	public void setDeviceName(String deviceName) {
 		this.deviceName = deviceName;
 	}
 
 	/**
-	 * Get 璁惧鎺堟潈鐮�
+	 * Get 璁惧绫诲瀷锛歝amera1, camera2, main_device
 	 */
-	public String getAuthorizationId() {
-		return authorizationId;
+	public String getType() {
+		return type;
 	}
-	
+
 	/**
-	 * Set 璁惧鎺堟潈鐮�
+	 * Set 璁惧绫诲瀷锛歝amera1, camera2, main_device
 	 */
-	public void setAuthorizationId(String authorizationId) {
-		this.authorizationId = authorizationId;
+	public void setType(String type) {
+		this.type = type;
+	}
+
+	/**
+	 * Get 璁惧鍦板潃
+	 */
+	public String getInstallAddress() {
+		return installAddress;
+	}
+
+	/**
+	 * Set 璁惧鍦板潃
+	 */
+	public void setInstallAddress(String installAddress) {
+		this.installAddress = installAddress;
+	}
+
+	/**
+	 * Get 瀛︽牎鍚嶇О
+	 */
+	public String getSchoolName() {
+		return schoolName;
+	}
+
+	/**
+	 * Set 瀛︽牎鍚嶇О
+	 */
+	public void setSchoolName(String schoolName) {
+		this.schoolName = schoolName;
+	}
+
+	/**
+	 * Get 鍝佺墝
+	 */
+	public String getBrandId() {
+		return brandId;
+	}
+
+	/**
+	 * Set 鍝佺墝
+	 */
+	public void setBrandId(String brandId) {
+		this.brandId = brandId;
+	}
+
+	/**
+	 * Get IP
+	 */
+	public String getIp() {
+		return ip;
+	}
+
+	/**
+	 * Set IP
+	 */
+	public void setIp(String ip) {
+		this.ip = ip;
+	}
+
+	/**
+	 * Get 绔彛
+	 */
+	public String getPort() {
+		return port;
+	}
+
+	/**
+	 * Set 绔彛
+	 */
+	public void setPort(String port) {
+		this.port = port;
+	}
+
+	/**
+	 * Get 鍒嗚鲸鐜�
+	 */
+	public String getResolutionId() {
+		return resolutionId;
+	}
+
+	/**
+	 * Set 鍒嗚鲸鐜�
+	 */
+	public void setResolutionId(String resolutionId) {
+		this.resolutionId = resolutionId;
+	}
+
+	/**
+	 * Get 鐢ㄦ埛鍚�
+	 */
+	public String getUsername() {
+		return username;
+	}
+
+	/**
+	 * Set 鐢ㄦ埛鍚�
+	 */
+	public void setUsername(String username) {
+		this.username = username;
+	}
+
+	/**
+	 * Get 瀵嗙爜
+	 */
+	public String getPassword() {
+		return password;
+	}
+
+	/**
+	 * Set 瀵嗙爜
+	 */
+	public void setPassword(String password) {
+		this.password = password;
+	}
+
+	/**
+	 * Get 閫氳鍗忚
+	 */
+	public String getProtocolId() {
+		return protocolId;
+	}
+
+	/**
+	 * Set 閫氳鍗忚
+	 */
+	public void setProtocolId(String protocolId) {
+		this.protocolId = protocolId;
+	}
+
+	/**
+	 * Get 搴忓垪鍙�
+	 */
+	public String getSn() {
+		return sn;
+	}
+
+	/**
+	 * Set 搴忓垪鍙�
+	 */
+	public void setSn(String sn) {
+		this.sn = sn;
+	}
+
+	/**
+	 * Get 鎵�灞炶澶噄d
+	 */
+	public String getBelongId() {
+		return belongId;
+	}
+
+	/**
+	 * Set 鎵�灞炶澶噄d
+	 */
+	public void setBelongId(String belongId) {
+		this.belongId = belongId;
+	}
+
+	/**
+	 * Get 鍚嶇О
+	 */
+	public String getBrandName() {
+		return brandName;
+	}
+
+	/**
+	 * Set 鍚嶇О
+	 */
+	public void setBrandName(String brandName) {
+		this.brandName = brandName;
+	}
+
+	/**
+	 * Get 鍚嶇О
+	 */
+	public String getResolution() {
+		return resolution;
+	}
+
+	/**
+	 * Set 鍚嶇О
+	 */
+	public void setResolution(String resolution) {
+		this.resolution = resolution;
+	}
+
+	/**
+	 * Get 鍚嶇О
+	 */
+	public String getProtocol() {
+		return protocol;
+	}
+
+	/**
+	 * Set 鍚嶇О
+	 */
+	public void setProtocol(String protocol) {
+		this.protocol = protocol;
 	}
 
 	public String toString() {
-		return 
-			 ",璁惧涓婚敭 =" + id         +  ",鍏徃涓婚敭 =" + companyId  +  ",璁惧鍦扮偣 =" + deviceName + 
-			 ",璁惧鎺堟潈鐮� ="+ authorizationId;
+		return
+				",璁惧涓婚敭 =" + deviceId   +  ",璁惧鎵�灞炲叕鍙� ="+ companyId  +  ",璁惧鍚嶇О =" + deviceName +
+						",璁惧绫诲瀷锛歝amera1, camera2, main_device ="+ type       +  ",璁惧鍦板潃 =" + installAddress +  ",瀛︽牎鍚嶇О =" + schoolName +
+						",鍝佺墝 ="   + brandId    +  ",IP ="   + ip         +  ",绔彛 ="   + port       +
+						",鍒嗚鲸鐜� ="  + resolutionId +  ",鐢ㄦ埛鍚� ="  + username   +  ",瀵嗙爜 ="   + password   +
+						",閫氳鍗忚 =" + protocolId +  ",搴忓垪鍙� ="  + sn         +  ",鎵�灞炶澶噄d ="+ belongId   +
+						",鍚嶇О ="   + brandName  +  ",鍚嶇О ="   + resolution +  ",鍚嶇О ="   + protocol
+				;
 	}
 }

--
Gitblit v1.8.0