优化子码流切换逻辑,去除主子多开逻辑。优化单端口模式ssrc变化导致的无法移出点播缓存 #895
This commit is contained in:
@@ -29,7 +29,7 @@ public class InviteInfo {
|
||||
private StreamInfo streamInfo;
|
||||
|
||||
|
||||
public static InviteInfo getinviteInfo(String deviceId, String channelId, String stream, SSRCInfo ssrcInfo,
|
||||
public static InviteInfo getInviteInfo(String deviceId, String channelId, String stream, SSRCInfo ssrcInfo,
|
||||
String receiveIp, Integer receivePort, String streamMode,
|
||||
InviteSessionType type, InviteSessionStatus status) {
|
||||
InviteInfo inviteInfo = new InviteInfo();
|
||||
@@ -138,25 +138,6 @@ public class InviteInfo {
|
||||
this.subStream = subStream;
|
||||
}
|
||||
|
||||
public static InviteInfo getInviteInfo(String deviceId, String channelId,Boolean isSubStream, String stream, SSRCInfo ssrcInfo,
|
||||
String receiveIp, Integer receivePort, String streamMode,
|
||||
InviteSessionType type, InviteSessionStatus status) {
|
||||
InviteInfo inviteInfo = new InviteInfo();
|
||||
inviteInfo.setDeviceId(deviceId);
|
||||
inviteInfo.setChannelId(channelId);
|
||||
inviteInfo.setStream(stream);
|
||||
inviteInfo.setSsrcInfo(ssrcInfo);
|
||||
inviteInfo.setReceiveIp(receiveIp);
|
||||
inviteInfo.setReceivePort(receivePort);
|
||||
inviteInfo.setStreamMode(streamMode);
|
||||
inviteInfo.setType(type);
|
||||
inviteInfo.setStatus(status);
|
||||
if(isSubStream != null){
|
||||
inviteInfo.setSubStream(isSubStream);
|
||||
}
|
||||
return inviteInfo;
|
||||
}
|
||||
/*=========================设备主子码流逻辑END====================*/
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -542,17 +542,5 @@ public class StreamInfo implements Serializable, Cloneable{
|
||||
this.subStream = subStream;
|
||||
}
|
||||
|
||||
public static String getPlayStream(String deviceId,String channelId,boolean isSubStream){
|
||||
String streamId;
|
||||
if(isSubStream){
|
||||
streamId = String.format("%s_%s_%s","sub",deviceId, channelId);
|
||||
}else {
|
||||
streamId = String.format("%s_%s_%s","main", deviceId, channelId);
|
||||
}
|
||||
return streamId;
|
||||
}
|
||||
|
||||
/*=========================设备主子码流逻辑END====================*/
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user