io.github.lunasaw.sip.common.entity.GbSessionDescription Maven / Gradle / Ivy
package io.github.lunasaw.sip.common.entity;
import javax.sdp.SessionDescription;
import lombok.Data;
/**
* 28181 的SDP解析器
*
* @author luna
*/
@Data
public class GbSessionDescription extends SdpSessionDescription {
private String ssrc;
private String mediaDescription;
/**
* 冗余处理
*/
private String address;
private Integer port;
public GbSessionDescription(SessionDescription sessionDescription) {
super(sessionDescription);
}
public static GbSessionDescription getInstance(SessionDescription sessionDescription, String ssrc, String mediaDescription) {
GbSessionDescription gbSessionDescription = new GbSessionDescription(sessionDescription);
gbSessionDescription.setSsrc(ssrc);
gbSessionDescription.setMediaDescription(mediaDescription);
return gbSessionDescription;
}
}