开源版本,视频直播功能

This commit is contained in:
gx_ma
2024-07-08 09:30:11 +08:00
parent 55a3b95a97
commit b2ea3dec75
167 changed files with 16329 additions and 21 deletions

View File

@@ -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";

View File

@@ -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;