Versions in this module Expand all Collapse all v0 v0.0.1 Feb 21, 2025 Changes in this version + const ConnectionRoleActive + const ConnectionRoleActpass + const ConnectionRoleHoldconn + const ConnectionRoleNone + const ConnectionRolePassive + const IceModeLite + const SsltcpProtocolName + const TCPProtocolName + const UDPProtocolName + var ErrEmptySDP = errors.New("empty sdp") + var ErrExtOversize = errors.New("ext oversize") + var ErrHeaderTooShort = errors.New("payload does not have enough header") + var ErrInvalidFID = errors.New("invalid fid ssrc-group") + var ErrInvalidMiniSDP = errors.New("mini sdp is invalid") + var ErrNoMiniSDP = errors.New("not a mini sdp payload") + var ErrSDPParseFail = errors.New("parse line fail") + var ErrUnknownSection = errors.New("unknown section") + func IsMiniSDP(payload []byte) bool + func Marshal(sdp *SessionDescription) (string, error) + func UnmarshalMiniSDP(raw []byte) (*ms, error) + type Candidate struct + Address string + Component int + Foundation string + Generation uint32 + ID string + NetworkCost uint16 + NetworkID uint16 + NetworkName string + Password string + Priority uint32 + Protocol string + RelatedAddress string + RelayProtocol string + TCPType string + TransportName string + Type string + URL string + Username string + type Codec struct + Channel int + ClockRate int + EncoderName string + FeedbackParams []FeedbackParams + Parameters map[string]string + PayloadType uint8 + RTX uint8 + type FeedbackParams struct + ID string + Params string + type Fingerprint struct + Algorithm string + Value string + type HeaderExtension struct + Encrypt bool + ID uint8 + URI string + type IceMode int + type MediaDescription struct + Codecs map[uint8]*Codec + Direction string + HeaderExtensions []HeaderExtension + MID string + MediaType string + RtcpMux bool + RtcpReducedSize bool + Streams []StreamParams + TrackID string + type SessionDescription struct + ExtmapAllowMixed bool + MediaDescription []*MediaDescription + MsidSupported bool + TransportInfo TransportInfo + func Unmarshal(sdp string) (*SessionDescription, error) + func (s *SessionDescription) Marshal() (string, error) + func (s *SessionDescription) Unmarshal(sdp string) error + type StreamParams struct + Cname string + RID string + RTX uint32 + SSRC uint32 + type TransportInfo struct + Candidates []Candidate + ConnectionRole string + FingerPrint *Fingerprint + IceMode IceMode + IcePwd string + IceUfrag string + TransportOptions []string