All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.lunasaw.sip.common.entity.GbSessionDescription Maven / Gradle / Ivy

There is a newer version: 1.2.4
Show newest version
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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy