增加推流鉴权。保护服务安全
This commit is contained in:
@@ -9,6 +9,9 @@ public class StreamInfo {
|
||||
private String deviceID;
|
||||
private String channelId;
|
||||
private String flv;
|
||||
|
||||
private String ip;
|
||||
|
||||
private String https_flv;
|
||||
private String ws_flv;
|
||||
private String wss_flv;
|
||||
@@ -292,4 +295,12 @@ public class StreamInfo {
|
||||
public void setProgress(double progress) {
|
||||
this.progress = progress;
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,6 +58,8 @@ public class VideoManagerConstants {
|
||||
|
||||
public static final String MEDIA_TRANSACTION_USED_PREFIX = "VMP_MEDIA_TRANSACTION_";
|
||||
|
||||
public static final String MEDIA_STREAM_AUTHORITY = "MEDIA_STREAM_AUTHORITY_";
|
||||
|
||||
public static final String SIP_CSEQ_PREFIX = "VMP_SIP_CSEQ_";
|
||||
|
||||
public static final String SIP_SN_PREFIX = "VMP_SIP_SN_";
|
||||
@@ -71,6 +73,8 @@ public class VideoManagerConstants {
|
||||
public static final String SYSTEM_INFO_NET_PREFIX = "VMP_SYSTEM_INFO_NET_";
|
||||
|
||||
|
||||
|
||||
|
||||
//************************** redis 消息*********************************
|
||||
|
||||
// 流变化的通知
|
||||
@@ -79,9 +83,15 @@ public class VideoManagerConstants {
|
||||
// 接收推流设备的GPS变化通知
|
||||
public static final String VM_MSG_GPS = "VM_MSG_GPS";
|
||||
|
||||
// 接收推流设备的GPS变化通知
|
||||
public static final String VM_MSG_PUSH_STREAM_STATUS_CHANGE = "VM_MSG_PUSH_STREAM_STATUS_CHANGE";
|
||||
|
||||
// redis 消息通知设备推流到平台
|
||||
public static final String VM_MSG_STREAM_PUSH_REQUESTED = "VM_MSG_STREAM_PUSH_REQUESTED";
|
||||
|
||||
// redis 消息请求所有的在线通道
|
||||
public static final String VM_MSG_GET_ALL_ONLINE_REQUESTED = "VM_MSG_GET_ALL_ONLINE_REQUESTED";
|
||||
|
||||
// 移动位置订阅通知
|
||||
public static final String VM_MSG_SUBSCRIBE_MOBILE_POSITION = "mobileposition";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user