mirror of
https://github.com/kerwincui/FastBee.git
synced 2025-10-18 22:14:35 +08:00
开源版本,视频直播功能
This commit is contained in:
@@ -176,6 +176,7 @@ public interface FastBeeConstant {
|
||||
String RECORDINFO_KEY = "sip:recordinfo:";
|
||||
String DEVICEID_KEY = "sip:deviceid:";
|
||||
String STREAM_KEY = "sip:stream:";
|
||||
String INVITE_KEY = "sip:invite:";
|
||||
String SIP_CSEQ_PREFIX = "sip:CSEQ:";
|
||||
String DEFAULT_SIP_CONFIG = "sip:config";
|
||||
String DEFAULT_MEDIA_CONFIG = "sip:mediaconfig";
|
||||
|
@@ -66,6 +66,14 @@ public class RedisKeyBuilder {
|
||||
return FastBeeConstant.REDIS.STREAM_KEY + steamId;
|
||||
}
|
||||
|
||||
public static String buildStreamCacheKey(String deviceId, String channelId, String stream, String ssrc){
|
||||
return FastBeeConstant.REDIS.STREAM_KEY + deviceId + ":" + channelId + ":" + stream + ":" + ssrc;
|
||||
}
|
||||
|
||||
public static String buildInviteCacheKey(String type, String deviceId, String channelId, String stream, String ssrc){
|
||||
return FastBeeConstant.REDIS.INVITE_KEY + type + ":"+ deviceId + ":" + channelId + ":" + stream + ":" + ssrc;
|
||||
}
|
||||
|
||||
/**ipCSEQ缓存key*/
|
||||
public static String buildSipCSEQCacheKey(String CSEQ){
|
||||
return FastBeeConstant.REDIS.SIP_CSEQ_PREFIX + CSEQ;
|
||||
|
Reference in New Issue
Block a user