临时提交

This commit is contained in:
648540858
2024-09-06 17:56:24 +08:00
parent 26919170f4
commit da441a67f8
52 changed files with 576 additions and 508 deletions

View File

@@ -6,7 +6,7 @@ import com.genersoft.iot.vmp.common.VideoManagerConstants;
import lombok.Data;
@Data
public class SendRtpItem {
public class SendRtpInfo {
/**
* 推流ip
@@ -143,8 +143,8 @@ public class SendRtpItem {
*/
private String sessionName;
public static SendRtpItem getInstance(RequestPushStreamMsg requestPushStreamMsg) {
SendRtpItem sendRtpItem = new SendRtpItem();
public static SendRtpInfo getInstance(RequestPushStreamMsg requestPushStreamMsg) {
SendRtpInfo sendRtpItem = new SendRtpInfo();
sendRtpItem.setMediaServerId(requestPushStreamMsg.getMediaServerId());
sendRtpItem.setApp(requestPushStreamMsg.getApp());
sendRtpItem.setStream(requestPushStreamMsg.getStream());
@@ -160,8 +160,8 @@ public class SendRtpItem {
}
public static SendRtpItem getInstance(String app, String stream, String ssrc, String dstIp, Integer dstPort, boolean tcp, int sendLocalPort, Integer pt) {
SendRtpItem sendRtpItem = new SendRtpItem();
public static SendRtpInfo getInstance(String app, String stream, String ssrc, String dstIp, Integer dstPort, boolean tcp, int sendLocalPort, Integer pt) {
SendRtpInfo sendRtpItem = new SendRtpInfo();
sendRtpItem.setApp(app);
sendRtpItem.setStream(stream);
sendRtpItem.setSsrc(ssrc);

View File

@@ -1,6 +1,7 @@
package com.genersoft.iot.vmp.gb28181.bean;
import com.genersoft.iot.vmp.common.InviteSessionType;
import gov.nist.javax.sip.message.SIPResponse;
import lombok.Data;
@Data
@@ -18,18 +19,31 @@ public class SsrcTransaction {
private InviteSessionType type;
public SsrcTransaction(String deviceId, String platformId, Integer channelId, String callId,
String stream, String mediaServerId, String ssrc,
SipTransactionInfo sipTransactionInfo, InviteSessionType type) {
this.deviceId = deviceId;
this.platformId = platformId;
this.channelId = channelId;
this.callId = callId;
this.stream = stream;
this.mediaServerId = mediaServerId;
this.ssrc = ssrc;
this.sipTransactionInfo = sipTransactionInfo;
this.type = type;
public static SsrcTransaction buildForDevice(String deviceId, Integer channelId, String callId, String stream,
String ssrc, String mediaServerId, SIPResponse response, InviteSessionType type) {
SsrcTransaction ssrcTransaction = new SsrcTransaction();
ssrcTransaction.setDeviceId(deviceId);
ssrcTransaction.setChannelId(channelId);
ssrcTransaction.setCallId(callId);
ssrcTransaction.setStream(stream);
ssrcTransaction.setMediaServerId(mediaServerId);
ssrcTransaction.setSsrc(ssrc);
ssrcTransaction.setSipTransactionInfo(new SipTransactionInfo(response));
ssrcTransaction.setType(type);
return ssrcTransaction;
}
public static SsrcTransaction buildForPlatform(String platformId, Integer channelId, String callId, String stream,
String ssrc, String mediaServerId, SIPResponse response, InviteSessionType type) {
SsrcTransaction ssrcTransaction = new SsrcTransaction();
ssrcTransaction.setPlatformId(platformId);
ssrcTransaction.setChannelId(channelId);
ssrcTransaction.setCallId(callId);
ssrcTransaction.setStream(stream);
ssrcTransaction.setMediaServerId(mediaServerId);
ssrcTransaction.setSsrc(ssrc);
ssrcTransaction.setSipTransactionInfo(new SipTransactionInfo(response));
ssrcTransaction.setType(type);
return ssrcTransaction;
}
public SsrcTransaction() {