拆分redis中device与channel的存储方式
支持分页 接口直接返回播放地址
This commit is contained in:
44
src/main/java/com/genersoft/iot/vmp/common/PageResult.java
Normal file
44
src/main/java/com/genersoft/iot/vmp/common/PageResult.java
Normal file
@@ -0,0 +1,44 @@
|
||||
package com.genersoft.iot.vmp.common;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class PageResult<T> {
|
||||
|
||||
private int page;
|
||||
private int count;
|
||||
private int total;
|
||||
|
||||
private List<T> data;
|
||||
|
||||
public List<T> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<T> data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public int getPage() {
|
||||
return page;
|
||||
}
|
||||
|
||||
public void setPage(int page) {
|
||||
this.page = page;
|
||||
}
|
||||
|
||||
public int getCount() {
|
||||
return count;
|
||||
}
|
||||
|
||||
public void setCount(int count) {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
public int getTotal() {
|
||||
return total;
|
||||
}
|
||||
|
||||
public void setTotal(int total) {
|
||||
this.total = total;
|
||||
}
|
||||
}
|
||||
59
src/main/java/com/genersoft/iot/vmp/common/StreamInfo.java
Normal file
59
src/main/java/com/genersoft/iot/vmp/common/StreamInfo.java
Normal file
@@ -0,0 +1,59 @@
|
||||
package com.genersoft.iot.vmp.common;
|
||||
|
||||
public class StreamInfo {
|
||||
|
||||
private String ssrc;
|
||||
private String flv;
|
||||
private String WS_FLV;
|
||||
private String RTMP;
|
||||
private String HLS;
|
||||
private String RTSP;
|
||||
|
||||
public String getSsrc() {
|
||||
return ssrc;
|
||||
}
|
||||
|
||||
public void setSsrc(String ssrc) {
|
||||
this.ssrc = ssrc;
|
||||
}
|
||||
|
||||
public String getFlv() {
|
||||
return flv;
|
||||
}
|
||||
|
||||
public void setFlv(String flv) {
|
||||
this.flv = flv;
|
||||
}
|
||||
|
||||
public String getWS_FLV() {
|
||||
return WS_FLV;
|
||||
}
|
||||
|
||||
public void setWS_FLV(String WS_FLV) {
|
||||
this.WS_FLV = WS_FLV;
|
||||
}
|
||||
|
||||
public String getRTMP() {
|
||||
return RTMP;
|
||||
}
|
||||
|
||||
public void setRTMP(String RTMP) {
|
||||
this.RTMP = RTMP;
|
||||
}
|
||||
|
||||
public String getHLS() {
|
||||
return HLS;
|
||||
}
|
||||
|
||||
public void setHLS(String HLS) {
|
||||
this.HLS = HLS;
|
||||
}
|
||||
|
||||
public String getRTSP() {
|
||||
return RTSP;
|
||||
}
|
||||
|
||||
public void setRTSP(String RTSP) {
|
||||
this.RTSP = RTSP;
|
||||
}
|
||||
}
|
||||
@@ -8,10 +8,16 @@ package com.genersoft.iot.vmp.common;
|
||||
*/
|
||||
public class VideoManagerConstants {
|
||||
|
||||
public static final String CACHEKEY_PREFIX = "VMP_deviceId_";
|
||||
public static final String MEDIA_SERVER_PREFIX = "VMP_media_server";
|
||||
|
||||
public static final String DEVICE_PREFIX = "VMP_device_";
|
||||
|
||||
public static final String CACHEKEY_PREFIX = "VMP_channel_";
|
||||
|
||||
public static final String KEEPLIVEKEY_PREFIX = "VMP_keeplive_";
|
||||
|
||||
|
||||
public static final String PLAYER_PREFIX = "VMP_player_";
|
||||
|
||||
public static final String EVENT_ONLINE_REGISTER = "1";
|
||||
|
||||
public static final String EVENT_ONLINE_KEEPLIVE = "2";
|
||||
|
||||
Reference in New Issue
Block a user